@aws/lsp-codewhisperer 0.0.88 → 0.0.89

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 (239) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/node_modules/@amzn/codewhisperer-runtime/README.md +78 -15
  3. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/CodeWhispererRuntimeClient.js +13 -10
  4. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateArtifactUploadUrlCommand.js +4 -0
  5. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateSubscriptionTokenCommand.js +4 -0
  6. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateTaskAssistConversationCommand.js +4 -0
  7. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateUploadUrlCommand.js +4 -0
  8. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateUserMemoryEntryCommand.js +4 -0
  9. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/CreateWorkspaceCommand.js +4 -0
  10. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/DeleteTaskAssistConversationCommand.js +4 -0
  11. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/DeleteUserMemoryEntryCommand.js +4 -0
  12. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/DeleteWorkspaceCommand.js +4 -0
  13. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GenerateCompletionsCommand.js +4 -0
  14. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetCodeAnalysisCommand.js +4 -0
  15. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetCodeFixJobCommand.js +4 -0
  16. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetProfileCommand.js +4 -0
  17. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetRetrievalsCommand.js +4 -0
  18. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTaskAssistCodeGenerationCommand.js +6 -2
  19. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTestGenerationCommand.js +4 -0
  20. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTransformationCommand.js +4 -0
  21. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetTransformationPlanCommand.js +4 -0
  22. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetUsageLimitsCommand.js +4 -0
  23. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableCustomizationsCommand.js +4 -0
  24. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableModelsCommand.js +4 -0
  25. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableProfilesCommand.js +4 -0
  26. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableSubscriptionsCommand.js +4 -0
  27. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListCodeAnalysisFindingsCommand.js +4 -0
  28. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListEventsCommand.js +4 -0
  29. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListFeatureEvaluationsCommand.js +4 -0
  30. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListUserMemoryEntriesCommand.js +4 -0
  31. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListWorkspaceMetadataCommand.js +4 -0
  32. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/PushTelemetryEventCommand.js +4 -0
  33. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ResumeTransformationCommand.js +4 -0
  34. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/SendTelemetryEventCommand.js +4 -0
  35. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/SetUserPreferenceCommand.js +4 -0
  36. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartCodeAnalysisCommand.js +4 -0
  37. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartCodeFixJobCommand.js +4 -0
  38. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartTaskAssistCodeGenerationCommand.js +4 -0
  39. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartTestGenerationCommand.js +4 -0
  40. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StartTransformationCommand.js +4 -0
  41. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/StopTransformationCommand.js +4 -0
  42. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/UpdateUsageLimitsCommand.js +4 -0
  43. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoint/EndpointParameters.js +15 -0
  44. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoint/endpointResolver.js +19 -0
  45. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoint/ruleset.js +61 -0
  46. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_0.js +52 -43
  47. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_1.js +7 -1
  48. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/protocols/Aws_restJson1.js +23 -2
  49. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/runtimeConfig.shared.js +2 -2
  50. package/node_modules/@amzn/codewhisperer-runtime/dist-es/CodeWhispererRuntimeClient.js +15 -12
  51. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateArtifactUploadUrlCommand.js +4 -0
  52. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateSubscriptionTokenCommand.js +4 -0
  53. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateTaskAssistConversationCommand.js +4 -0
  54. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateUploadUrlCommand.js +4 -0
  55. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateUserMemoryEntryCommand.js +4 -0
  56. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/CreateWorkspaceCommand.js +4 -0
  57. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/DeleteTaskAssistConversationCommand.js +4 -0
  58. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/DeleteUserMemoryEntryCommand.js +4 -0
  59. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/DeleteWorkspaceCommand.js +4 -0
  60. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GenerateCompletionsCommand.js +4 -0
  61. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetCodeAnalysisCommand.js +4 -0
  62. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetCodeFixJobCommand.js +4 -0
  63. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetProfileCommand.js +4 -0
  64. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetRetrievalsCommand.js +4 -0
  65. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTaskAssistCodeGenerationCommand.js +5 -1
  66. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTestGenerationCommand.js +4 -0
  67. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTransformationCommand.js +4 -0
  68. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetTransformationPlanCommand.js +4 -0
  69. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetUsageLimitsCommand.js +4 -0
  70. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableCustomizationsCommand.js +4 -0
  71. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableModelsCommand.js +4 -0
  72. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableProfilesCommand.js +4 -0
  73. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableSubscriptionsCommand.js +4 -0
  74. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListCodeAnalysisFindingsCommand.js +4 -0
  75. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListEventsCommand.js +4 -0
  76. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListFeatureEvaluationsCommand.js +4 -0
  77. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListUserMemoryEntriesCommand.js +4 -0
  78. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListWorkspaceMetadataCommand.js +4 -0
  79. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/PushTelemetryEventCommand.js +4 -0
  80. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ResumeTransformationCommand.js +4 -0
  81. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/SendTelemetryEventCommand.js +4 -0
  82. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/SetUserPreferenceCommand.js +4 -0
  83. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartCodeAnalysisCommand.js +4 -0
  84. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartCodeFixJobCommand.js +4 -0
  85. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartTaskAssistCodeGenerationCommand.js +4 -0
  86. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartTestGenerationCommand.js +4 -0
  87. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StartTransformationCommand.js +4 -0
  88. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/StopTransformationCommand.js +4 -0
  89. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/UpdateUsageLimitsCommand.js +4 -0
  90. package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoint/EndpointParameters.js +11 -0
  91. package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoint/endpointResolver.js +15 -0
  92. package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoint/ruleset.js +58 -0
  93. package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_0.js +47 -37
  94. package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_1.js +5 -0
  95. package/node_modules/@amzn/codewhisperer-runtime/dist-es/protocols/Aws_restJson1.js +23 -2
  96. package/node_modules/@amzn/codewhisperer-runtime/dist-es/runtimeConfig.shared.js +2 -2
  97. package/node_modules/@amzn/codewhisperer-runtime/dist-types/CodeWhispererRuntimeClient.d.ts +6 -9
  98. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateArtifactUploadUrlCommand.d.ts +7 -7
  99. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateSubscriptionTokenCommand.d.ts +8 -6
  100. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateTaskAssistConversationCommand.d.ts +4 -4
  101. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateUploadUrlCommand.d.ts +11 -11
  102. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateUserMemoryEntryCommand.d.ts +10 -10
  103. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateWorkspaceCommand.d.ts +8 -8
  104. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteTaskAssistConversationCommand.d.ts +5 -4
  105. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteUserMemoryEntryCommand.d.ts +4 -4
  106. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -6
  107. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GenerateCompletionsCommand.d.ts +6 -6
  108. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetCodeAnalysisCommand.d.ts +8 -8
  109. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetCodeFixJobCommand.d.ts +7 -7
  110. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetProfileCommand.d.ts +10 -6
  111. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetRetrievalsCommand.d.ts +6 -6
  112. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTaskAssistCodeGenerationCommand.d.ts +6 -6
  113. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTestGenerationCommand.d.ts +4 -4
  114. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTransformationCommand.d.ts +5 -5
  115. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetTransformationPlanCommand.d.ts +5 -5
  116. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetUsageLimitsCommand.d.ts +6 -6
  117. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableCustomizationsCommand.d.ts +6 -6
  118. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableModelsCommand.d.ts +10 -6
  119. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableProfilesCommand.d.ts +9 -6
  120. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableSubscriptionsCommand.d.ts +3 -3
  121. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListCodeAnalysisFindingsCommand.d.ts +6 -6
  122. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListEventsCommand.d.ts +6 -6
  123. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListFeatureEvaluationsCommand.d.ts +6 -6
  124. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListUserMemoryEntriesCommand.d.ts +4 -4
  125. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListWorkspaceMetadataCommand.d.ts +6 -6
  126. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/PushTelemetryEventCommand.d.ts +6 -6
  127. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ResumeTransformationCommand.d.ts +5 -5
  128. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SendTelemetryEventCommand.d.ts +7 -6
  129. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SetUserPreferenceCommand.d.ts +6 -6
  130. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartCodeAnalysisCommand.d.ts +8 -8
  131. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartCodeFixJobCommand.d.ts +7 -7
  132. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartTaskAssistCodeGenerationCommand.d.ts +8 -8
  133. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartTestGenerationCommand.d.ts +7 -7
  134. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StartTransformationCommand.d.ts +5 -5
  135. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/StopTransformationCommand.d.ts +5 -5
  136. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/UpdateUsageLimitsCommand.d.ts +8 -8
  137. package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoint/EndpointParameters.d.ts +28 -0
  138. package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoint/endpointResolver.d.ts +5 -0
  139. package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoint/ruleset.d.ts +2 -0
  140. package/node_modules/@amzn/codewhisperer-runtime/dist-types/index.d.ts +1 -0
  141. package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_0.d.ts +151 -131
  142. package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_1.d.ts +52 -1
  143. package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.browser.d.ts +5 -2
  144. package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.d.ts +5 -2
  145. package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.native.d.ts +5 -2
  146. package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.shared.d.ts +3 -1
  147. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
  148. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
  149. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +423 -0
  150. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +229 -0
  151. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
  152. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +5 -0
  153. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
  154. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
  155. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +18 -0
  156. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
  157. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +229 -0
  158. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -0
  159. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -0
  160. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -0
  161. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
  162. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
  163. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
  164. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
  165. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
  166. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
  167. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -0
  168. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +5 -0
  169. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
  170. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
  171. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
  172. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
  173. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -0
  174. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -0
  175. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -0
  176. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +5 -0
  177. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
  178. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
  179. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
  180. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
  181. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
  182. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -0
  183. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -0
  184. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -0
  185. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -0
  186. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -0
  187. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -0
  188. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
  189. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -0
  190. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -0
  191. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -0
  192. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -0
  193. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -0
  194. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -0
  195. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
  196. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -0
  197. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@aws-sdk/util-endpoints/package.json +58 -0
  198. package/node_modules/@amzn/codewhisperer-runtime/package.json +3 -0
  199. package/out/language-server/agenticChat/agenticChatController.d.ts +7 -0
  200. package/out/language-server/agenticChat/agenticChatController.js +75 -14
  201. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  202. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.d.ts +7 -0
  203. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +202 -34
  204. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
  205. package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +4 -0
  206. package/out/language-server/agenticChat/tools/mcp/mcpManager.js +19 -6
  207. package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
  208. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.d.ts +6 -0
  209. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +6 -0
  210. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
  211. package/out/language-server/agenticChat/tools/toolServer.js +1 -1
  212. package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
  213. package/out/language-server/inline-completion/handler/editCompletionHandler.js +8 -2
  214. package/out/language-server/inline-completion/handler/editCompletionHandler.js.map +1 -1
  215. package/out/language-server/inline-completion/handler/inlineCompletionHandler.js +7 -2
  216. package/out/language-server/inline-completion/handler/inlineCompletionHandler.js.map +1 -1
  217. package/out/language-server/inline-completion/handler/sessionResultsHandler.js +15 -2
  218. package/out/language-server/inline-completion/handler/sessionResultsHandler.js.map +1 -1
  219. package/out/language-server/inline-completion/telemetry/telemetry.d.ts +4 -4
  220. package/out/language-server/inline-completion/telemetry/telemetry.js +6 -6
  221. package/out/language-server/inline-completion/telemetry/telemetry.js.map +1 -1
  222. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js +5 -1
  223. package/out/shared/amazonQServiceManager/AmazonQTokenServiceManager.js.map +1 -1
  224. package/out/shared/codeWhispererService.d.ts +10 -3
  225. package/out/shared/codeWhispererService.js +63 -2
  226. package/out/shared/codeWhispererService.js.map +1 -1
  227. package/out/shared/supplementalContextUtil/crossFileContextUtil.d.ts +3 -3
  228. package/out/shared/supplementalContextUtil/crossFileContextUtil.js +9 -9
  229. package/out/shared/supplementalContextUtil/crossFileContextUtil.js.map +1 -1
  230. package/out/shared/supplementalContextUtil/supplementalContextUtil.d.ts +1 -1
  231. package/out/shared/supplementalContextUtil/supplementalContextUtil.js +2 -2
  232. package/out/shared/supplementalContextUtil/supplementalContextUtil.js.map +1 -1
  233. package/out/shared/telemetry/telemetryService.d.ts +2 -2
  234. package/out/shared/telemetry/telemetryService.js +4 -2
  235. package/out/shared/telemetry/telemetryService.js.map +1 -1
  236. package/package.json +2 -2
  237. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/endpoints.js +0 -211
  238. package/node_modules/@amzn/codewhisperer-runtime/dist-es/endpoints.js +0 -207
  239. package/node_modules/@amzn/codewhisperer-runtime/dist-types/endpoints.d.ts +0 -2
@@ -0,0 +1,38 @@
1
+ import { EndpointPartition } from "@smithy/types";
2
+ export type PartitionsInfo = {
3
+ partitions: Array<{
4
+ id: string;
5
+ outputs: {
6
+ dnsSuffix: string;
7
+ dualStackDnsSuffix: string;
8
+ name: string;
9
+ supportsDualStack: boolean;
10
+ supportsFIPS: boolean;
11
+ };
12
+ regionRegex: string;
13
+ regions: Record<string, {
14
+ description?: string;
15
+ } | undefined>;
16
+ }>;
17
+ };
18
+ /**
19
+ * Evaluates a single string argument value as a region, and matches the
20
+ * string value to an AWS partition.
21
+ * The matcher MUST always return a successful object describing the partition
22
+ * that the region has been determined to be a part of.
23
+ */
24
+ export declare const partition: (value: string) => EndpointPartition;
25
+ /**
26
+ * Set custom partitions.json data.
27
+ * @internal
28
+ */
29
+ export declare const setPartitionInfo: (partitionsInfo: PartitionsInfo, userAgentPrefix?: string) => void;
30
+ /**
31
+ * Reset to the default partitions.json data.
32
+ * @internal
33
+ */
34
+ export declare const useDefaultPartitionInfo: () => void;
35
+ /**
36
+ * @internal
37
+ */
38
+ export declare const getUserAgentPrefix: () => string;
@@ -0,0 +1 @@
1
+ export { isIpAddress } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { resolveEndpoint } from "@smithy/util-endpoints";
@@ -0,0 +1,2 @@
1
+ import { EndpointFunctions } from "@smithy/util-endpoints";
2
+ export declare const awsEndpointFunctions: EndpointFunctions;
@@ -0,0 +1,5 @@
1
+ export * from "./aws";
2
+ export * from "./lib/aws/partition";
3
+ export * from "./lib/isIpAddress";
4
+ export * from "./resolveEndpoint";
5
+ export * from "./types";
@@ -0,0 +1,3 @@
1
+ export * from "./isVirtualHostableS3Bucket";
2
+ export * from "./parseArn";
3
+ export * from "./partition";
@@ -0,0 +1,4 @@
1
+ export declare const isVirtualHostableS3Bucket: (
2
+ value: string,
3
+ allowSubDomains?: boolean
4
+ ) => boolean;
@@ -0,0 +1,2 @@
1
+ import { EndpointARN } from "@smithy/types";
2
+ export declare const parseArn: (value: string) => EndpointARN | null;
@@ -0,0 +1,28 @@
1
+ import { EndpointPartition } from "@smithy/types";
2
+ export type PartitionsInfo = {
3
+ partitions: Array<{
4
+ id: string;
5
+ outputs: {
6
+ dnsSuffix: string;
7
+ dualStackDnsSuffix: string;
8
+ name: string;
9
+ supportsDualStack: boolean;
10
+ supportsFIPS: boolean;
11
+ };
12
+ regionRegex: string;
13
+ regions: Record<
14
+ string,
15
+ | {
16
+ description?: string;
17
+ }
18
+ | undefined
19
+ >;
20
+ }>;
21
+ };
22
+ export declare const partition: (value: string) => EndpointPartition;
23
+ export declare const setPartitionInfo: (
24
+ partitionsInfo: PartitionsInfo,
25
+ userAgentPrefix?: string
26
+ ) => void;
27
+ export declare const useDefaultPartitionInfo: () => void;
28
+ export declare const getUserAgentPrefix: () => string;
@@ -0,0 +1 @@
1
+ export { isIpAddress } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { resolveEndpoint } from "@smithy/util-endpoints";
@@ -0,0 +1,6 @@
1
+ export {
2
+ EndpointObjectProperties,
3
+ EndpointObjectHeaders,
4
+ EndpointObject,
5
+ EndpointRuleObject,
6
+ } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { ErrorRuleObject } from "@smithy/util-endpoints";
@@ -0,0 +1,5 @@
1
+ export {
2
+ DeprecatedObject,
3
+ ParameterObject,
4
+ RuleSetObject,
5
+ } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints";
@@ -0,0 +1,6 @@
1
+ export * from "./EndpointError";
2
+ export * from "./EndpointRuleObject";
3
+ export * from "./ErrorRuleObject";
4
+ export * from "./RuleSetObject";
5
+ export * from "./TreeRuleObject";
6
+ export * from "./shared";
@@ -0,0 +1,12 @@
1
+ export {
2
+ ReferenceObject,
3
+ FunctionObject,
4
+ FunctionArgv,
5
+ FunctionReturn,
6
+ ConditionObject,
7
+ Expression,
8
+ EndpointParams,
9
+ EndpointResolverOptions,
10
+ ReferenceRecord,
11
+ EvaluateOptions,
12
+ } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { EndpointError } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { ErrorRuleObject } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/util-endpoints";
@@ -0,0 +1 @@
1
+ export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints";
@@ -0,0 +1,6 @@
1
+ export * from "./EndpointError";
2
+ export * from "./EndpointRuleObject";
3
+ export * from "./ErrorRuleObject";
4
+ export * from "./RuleSetObject";
5
+ export * from "./TreeRuleObject";
6
+ export * from "./shared";
@@ -0,0 +1 @@
1
+ export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/util-endpoints";
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@aws-sdk/util-endpoints",
3
+ "version": "3.731.0",
4
+ "description": "Utilities to help with endpoint resolution",
5
+ "main": "./dist-cjs/index.js",
6
+ "module": "./dist-es/index.js",
7
+ "types": "./dist-types/index.d.ts",
8
+ "scripts": {
9
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
10
+ "build:cjs": "node ../../scripts/compilation/inline util-endpoints",
11
+ "build:es": "tsc -p tsconfig.es.json",
12
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
13
+ "build:types": "tsc -p tsconfig.types.json",
14
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
15
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16
+ "test": "yarn g:vitest run",
17
+ "test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
18
+ "test:watch": "yarn g:vitest watch",
19
+ "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
20
+ },
21
+ "author": {
22
+ "name": "AWS SDK for JavaScript Team",
23
+ "url": "https://aws.amazon.com/javascript/"
24
+ },
25
+ "license": "Apache-2.0",
26
+ "dependencies": {
27
+ "@aws-sdk/types": "3.731.0",
28
+ "@smithy/types": "^4.0.0",
29
+ "@smithy/util-endpoints": "^3.0.0",
30
+ "tslib": "^2.6.2"
31
+ },
32
+ "engines": {
33
+ "node": ">=18.0.0"
34
+ },
35
+ "typesVersions": {
36
+ "<4.0": {
37
+ "dist-types/*": [
38
+ "dist-types/ts3.4/*"
39
+ ]
40
+ }
41
+ },
42
+ "files": [
43
+ "dist-*/**"
44
+ ],
45
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-endpoints",
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
49
+ "directory": "packages/util-endpoints"
50
+ },
51
+ "devDependencies": {
52
+ "@tsconfig/recommended": "1.0.1",
53
+ "concurrently": "7.0.0",
54
+ "downlevel-dts": "0.10.1",
55
+ "rimraf": "3.0.2",
56
+ "typescript": "~5.2.2"
57
+ }
58
+ }
@@ -27,6 +27,7 @@
27
27
  "@aws-sdk/region-config-resolver": "3.731.0",
28
28
  "@aws-sdk/token-providers": "3.731.1",
29
29
  "@aws-sdk/types": "3.731.0",
30
+ "@aws-sdk/util-endpoints": "3.731.0",
30
31
  "@aws-sdk/util-user-agent-browser": "3.731.0",
31
32
  "@aws-sdk/util-user-agent-node": "3.731.0",
32
33
  "@smithy/config-resolver": "^4.0.1",
@@ -35,6 +36,7 @@
35
36
  "@smithy/hash-node": "^4.0.1",
36
37
  "@smithy/invalid-dependency": "^4.0.1",
37
38
  "@smithy/middleware-content-length": "^4.0.1",
39
+ "@smithy/middleware-endpoint": "^4.0.2",
38
40
  "@smithy/middleware-retry": "^4.0.3",
39
41
  "@smithy/middleware-serde": "^4.0.1",
40
42
  "@smithy/middleware-stack": "^4.0.1",
@@ -49,6 +51,7 @@
49
51
  "@smithy/util-body-length-node": "^4.0.0",
50
52
  "@smithy/util-defaults-mode-browser": "^4.0.3",
51
53
  "@smithy/util-defaults-mode-node": "^4.0.3",
54
+ "@smithy/util-endpoints": "^3.0.1",
52
55
  "@smithy/util-middleware": "^4.0.1",
53
56
  "@smithy/util-retry": "^4.0.1",
54
57
  "@smithy/util-utf8": "^4.0.0",
@@ -34,6 +34,13 @@ export declare class AgenticChatController implements ChatHandlers {
34
34
  onRuleClick(params: RuleClickParams): Promise<import("@aws/language-server-runtimes/protocol").RuleClickResult>;
35
35
  onListRules(params: ListRulesParams): Promise<import("@aws/language-server-runtimes/protocol").ListRulesResult>;
36
36
  onListMcpServers(params: ListMcpServersParams): Promise<{
37
+ header: {
38
+ title: string;
39
+ description: string;
40
+ actions: never[];
41
+ };
42
+ list: never[];
43
+ } | {
37
44
  header: {
38
45
  title: string;
39
46
  description: string;
@@ -1372,7 +1372,15 @@ class AgenticChatController {
1372
1372
  // — DEFAULT ⇒ Only MCP tools, but can also handle generic tool execution messages
1373
1373
  default:
1374
1374
  // Get original server and tool names from the mapping
1375
- const originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
1375
+ let originalNames;
1376
+ try {
1377
+ originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
1378
+ }
1379
+ catch (error) {
1380
+ // McpManager not initialized, skip MCP tool handling
1381
+ this.#features.logging.debug(`McpManager not initialized, skipping MCP tool handling with error: ${error}`);
1382
+ originalNames = undefined;
1383
+ }
1376
1384
  // Remove explanation field from toolUse.input for MCP tools
1377
1385
  // many MCP servers do not support explanation field and it will break the tool if this is altered
1378
1386
  if (originalNames &&
@@ -1384,9 +1392,16 @@ class AgenticChatController {
1384
1392
  }
1385
1393
  if (originalNames) {
1386
1394
  const { serverName, toolName } = originalNames;
1387
- const def = mcpManager_1.McpManager.instance
1388
- .getAllTools()
1389
- .find(d => d.serverName === serverName && d.toolName === toolName);
1395
+ let def;
1396
+ try {
1397
+ def = mcpManager_1.McpManager.instance
1398
+ .getAllTools()
1399
+ .find(d => d.serverName === serverName && d.toolName === toolName);
1400
+ }
1401
+ catch (error) {
1402
+ this.#features.logging.debug(`McpManager not initialized, cannot get tool definitions with error: ${error}`);
1403
+ def = undefined;
1404
+ }
1390
1405
  if (def) {
1391
1406
  const mcpTool = new mcpTool_1.McpTool(this.#features, def);
1392
1407
  const { requiresAcceptance, warning } = await mcpTool.requiresAcceptance(serverName, toolName);
@@ -1608,7 +1623,15 @@ class AgenticChatController {
1608
1623
  this.#telemetryController.emitToolUseSuggested(toolUse, session.conversationId ?? '', this.#features.runtime.serverInfo.version ?? '', undefined, session.pairProgrammingMode, this.#abTestingAllocation?.experimentName, this.#abTestingAllocation?.userVariation, 'Failed');
1609
1624
  }
1610
1625
  // Handle MCP tool failures
1611
- const originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
1626
+ let originalNames;
1627
+ try {
1628
+ originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
1629
+ }
1630
+ catch (error) {
1631
+ // McpManager not initialized, skip MCP error handling
1632
+ this.#features.logging.debug(`McpManager not initialized, skipping MCP error handling with error: ${error}`);
1633
+ originalNames = undefined;
1634
+ }
1612
1635
  if (originalNames && toolUse.toolUseId) {
1613
1636
  const { toolName } = originalNames;
1614
1637
  const cachedToolUse = session.toolUseLookup.get(toolUse.toolUseId);
@@ -3541,16 +3564,39 @@ class AgenticChatController {
3541
3564
  return allTools;
3542
3565
  }
3543
3566
  // Clear tool name mapping to avoid conflicts from previous registrations
3544
- mcpManager_1.McpManager.instance.clearToolNameMapping();
3567
+ try {
3568
+ mcpManager_1.McpManager.instance.clearToolNameMapping();
3569
+ }
3570
+ catch (error) {
3571
+ // McpManager not initialized, return tools without MCP
3572
+ this.#features.logging.debug(`McpManager not initialized in #getTools, returning non-MCP tools with error: ${error}`);
3573
+ return session.pairProgrammingMode
3574
+ ? allTools
3575
+ : allTools.filter(tool => !builtInWriteTools.has(tool.toolSpecification?.name || ''));
3576
+ }
3545
3577
  const tempMapping = new Map();
3546
3578
  // Read Only Tools = All Tools - Restricted Tools (MCP + Write Tools)
3547
3579
  // TODO: mcp tool spec name will be server___tool.
3548
3580
  // TODO: Will also need to handle rare edge cases of long server name + long tool name > 64 char
3549
3581
  const allNamespacedTools = new Set();
3550
- const mcpToolSpecNames = new Set(mcpManager_1.McpManager.instance
3551
- .getAllTools()
3552
- .map(tool => (0, mcpUtils_1.createNamespacedToolName)(tool.serverName, tool.toolName, allNamespacedTools, tempMapping)));
3553
- mcpManager_1.McpManager.instance.setToolNameMapping(tempMapping);
3582
+ let mcpToolSpecNames;
3583
+ try {
3584
+ mcpToolSpecNames = new Set(mcpManager_1.McpManager.instance
3585
+ .getAllTools()
3586
+ .map(tool => (0, mcpUtils_1.createNamespacedToolName)(tool.serverName, tool.toolName, allNamespacedTools, tempMapping)));
3587
+ }
3588
+ catch (error) {
3589
+ // McpManager not initialized, use empty set
3590
+ this.#features.logging.debug(`McpManager not initialized, cannot get MCP tools because of error: ${error}`);
3591
+ mcpToolSpecNames = new Set();
3592
+ }
3593
+ try {
3594
+ mcpManager_1.McpManager.instance.setToolNameMapping(tempMapping);
3595
+ }
3596
+ catch (error) {
3597
+ // McpManager not initialized, skip setting mapping
3598
+ this.#features.logging.debug(`McpManager not initialized, cannot set tool name mapping because of error: ${error}`);
3599
+ }
3554
3600
  const restrictedToolNames = new Set([...mcpToolSpecNames, ...builtInWriteTools]);
3555
3601
  const readOnlyTools = allTools.filter(tool => {
3556
3602
  const toolName = tool.toolSpecification.name;
@@ -3589,12 +3635,27 @@ class AgenticChatController {
3589
3635
  return;
3590
3636
  }
3591
3637
  // Get original server and tool names from the mapping
3592
- const originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
3638
+ let originalNames;
3639
+ try {
3640
+ originalNames = mcpManager_1.McpManager.instance.getOriginalToolNames(toolUse.name);
3641
+ }
3642
+ catch (error) {
3643
+ // McpManager not initialized, skip MCP tool result handling
3644
+ this.#features.logging.debug(`McpManager not initialized, cannot handle MCP tool result because of error: ${error}`);
3645
+ originalNames = undefined;
3646
+ }
3593
3647
  if (originalNames) {
3594
3648
  const { serverName, toolName } = originalNames;
3595
- const def = mcpManager_1.McpManager.instance
3596
- .getAllTools()
3597
- .find(d => d.serverName === serverName && d.toolName === toolName);
3649
+ let def;
3650
+ try {
3651
+ def = mcpManager_1.McpManager.instance
3652
+ .getAllTools()
3653
+ .find(d => d.serverName === serverName && d.toolName === toolName);
3654
+ }
3655
+ catch (error) {
3656
+ this.#features.logging.debug(`McpManager not initialized, cannot get tool definitions because of error: ${error}`);
3657
+ def = undefined;
3658
+ }
3598
3659
  if (def) {
3599
3660
  // Format the tool result and input as JSON strings
3600
3661
  const toolInput = JSON.stringify(toolUse.input, null, 2);