@aws/lsp-codewhisperer 0.0.97 → 0.0.99

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 (82) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +259 -0
  3. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +14 -11
  4. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +4 -0
  5. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +4 -0
  6. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/EndpointParameters.js +15 -0
  7. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/endpointResolver.js +19 -0
  8. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/ruleset.js +61 -0
  9. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +148 -64
  10. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +92 -0
  11. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +2 -2
  12. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +16 -13
  13. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +4 -0
  14. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +4 -0
  15. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/EndpointParameters.js +11 -0
  16. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/endpointResolver.js +15 -0
  17. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/ruleset.js +58 -0
  18. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +138 -57
  19. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +94 -2
  20. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +2 -2
  21. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +6 -9
  22. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +6 -6
  23. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +68 -11
  24. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/EndpointParameters.d.ts +28 -0
  25. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/endpointResolver.d.ts +5 -0
  26. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/ruleset.d.ts +2 -0
  27. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +1 -0
  28. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +472 -87
  29. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +5 -2
  30. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +5 -2
  31. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +5 -2
  32. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +3 -1
  33. package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +3 -0
  34. package/node_modules/@amzn/codewhisperer-streaming/README.md +266 -7
  35. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +2 -0
  36. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/InvokeMCPCommand.js +22 -0
  37. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +1 -0
  38. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +172 -58
  39. package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +164 -3
  40. package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +2 -0
  41. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/InvokeMCPCommand.js +18 -0
  42. package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/index.js +1 -0
  43. package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +159 -51
  44. package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +163 -4
  45. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +7 -0
  46. package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +3 -2
  47. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +5 -5
  48. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +68 -3
  49. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +63 -6
  50. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/InvokeMCPCommand.d.ts +93 -0
  51. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +68 -11
  52. package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +1 -0
  53. package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +585 -80
  54. package/node_modules/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  55. package/out/language-server/agenticChat/agenticChatController.js +17 -5
  56. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  57. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +21 -13
  58. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
  59. package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +12 -4
  60. package/out/language-server/agenticChat/tools/mcp/mcpManager.js +192 -37
  61. package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
  62. package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js +42 -20
  63. package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js.map +1 -1
  64. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +4 -0
  65. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
  66. package/out/language-server/agenticChat/tools/toolServer.js +57 -12
  67. package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
  68. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.d.ts +3 -3
  69. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js +4 -4
  70. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js.map +1 -1
  71. package/out/language-server/netTransform/utils.js +2 -4
  72. package/out/language-server/netTransform/utils.js.map +1 -1
  73. package/out/shared/codeWhispererService.js +1 -0
  74. package/out/shared/codeWhispererService.js.map +1 -1
  75. package/out/shared/telemetry/telemetryService.js +2 -1
  76. package/out/shared/telemetry/telemetryService.js.map +1 -1
  77. package/out/shared/utils.js +6 -4
  78. package/out/shared/utils.js.map +1 -1
  79. package/package.json +5 -4
  80. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +0 -211
  81. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +0 -207
  82. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +0 -2
@@ -1,6 +1,7 @@
1
1
  import { ExportResultArchiveCommandInput, ExportResultArchiveCommandOutput } from "../commands/ExportResultArchiveCommand";
2
2
  import { GenerateAssistantResponseCommandInput, GenerateAssistantResponseCommandOutput } from "../commands/GenerateAssistantResponseCommand";
3
3
  import { GenerateTaskAssistPlanCommandInput, GenerateTaskAssistPlanCommandOutput } from "../commands/GenerateTaskAssistPlanCommand";
4
+ import { InvokeMCPCommandInput, InvokeMCPCommandOutput } from "../commands/InvokeMCPCommand";
4
5
  import { SendMessageCommandInput, SendMessageCommandOutput } from "../commands/SendMessageCommand";
5
6
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
6
7
  import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@smithy/types";
@@ -16,6 +17,10 @@ export declare const se_GenerateAssistantResponseCommand: (input: GenerateAssist
16
17
  * serializeAws_restJson1GenerateTaskAssistPlanCommand
17
18
  */
18
19
  export declare const se_GenerateTaskAssistPlanCommand: (input: GenerateTaskAssistPlanCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
+ /**
21
+ * serializeAws_restJson1InvokeMCPCommand
22
+ */
23
+ export declare const se_InvokeMCPCommand: (input: InvokeMCPCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
19
24
  /**
20
25
  * serializeAws_restJson1SendMessageCommand
21
26
  */
@@ -32,6 +37,10 @@ export declare const de_GenerateAssistantResponseCommand: (output: __HttpRespons
32
37
  * deserializeAws_restJson1GenerateTaskAssistPlanCommand
33
38
  */
34
39
  export declare const de_GenerateTaskAssistPlanCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<GenerateTaskAssistPlanCommandOutput>;
40
+ /**
41
+ * deserializeAws_restJson1InvokeMCPCommand
42
+ */
43
+ export declare const de_InvokeMCPCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<InvokeMCPCommandOutput>;
35
44
  /**
36
45
  * deserializeAws_restJson1SendMessageCommand
37
46
  */
@@ -3191,6 +3191,18 @@ class AgenticChatController {
3191
3191
  })
3192
3192
  .catch(err => {
3193
3193
  this.#log(`setPaidTierMode: getSubscriptionStatus failed: ${err.message}`);
3194
+ const isAccessDenied = err.name === 'AccessDeniedException';
3195
+ const message = isAccessDenied
3196
+ ? `To increase your limit, subscribe to a Kiro subscription. Choose the right [plan](https://kiro.dev/pricing/) and log in to [app.kiro.dev](https://app.kiro.dev/signin), pick the plan, and once active, you should be able to continue and use Q and Kiro services with the new limits. If you have questions, refer to our [FAQs](https://aws.amazon.com/q/developer/faqs/?p=qdev&z=subnav&loc=8#general)`
3197
+ : `setPaidTierMode: getSubscriptionStatus failed: ${(0, utils_2.fmtError)(err)}`;
3198
+ this.#features.lsp.window
3199
+ .showMessage({
3200
+ message,
3201
+ type: protocol_1.MessageType.Error,
3202
+ })
3203
+ .catch(e => {
3204
+ this.#log(`setPaidTierMode: showMessage failed: ${e.message}`);
3205
+ });
3194
3206
  });
3195
3207
  // mode = isFreeTierUser ? 'freetier' : 'paidtier'
3196
3208
  return;
@@ -3315,13 +3327,13 @@ class AgenticChatController {
3315
3327
  })
3316
3328
  .catch(e => {
3317
3329
  this.#log(`onManageSubscription: getSubscriptionStatus failed: ${e.message}`);
3318
- // TOOD: for visibility, the least-bad option is showMessage, which appears as an IDE notification.
3319
- // But it likely makes sense to route this to chat ERROR_MESSAGE mynahApi.showError(), so the message will appear in chat.
3320
- // https://github.com/aws/language-servers/blob/1b154570c9cf1eb1d56141095adea4459426b774/chat-client/src/client/chat.ts#L176-L178
3321
- // I did find a way to route that from here, yet.
3330
+ const isAccessDenied = e.name === 'AccessDeniedException';
3331
+ const message = isAccessDenied
3332
+ ? `To increase your limit, subscribe to a Kiro subscription. Choose the right [plan](https://kiro.dev/pricing/) and log in to [app.kiro.dev](https://app.kiro.dev/signin), pick the plan, and once active, you should be able to continue and use Q and Kiro services with the new limits. If you have questions, refer to our [FAQs](https://aws.amazon.com/q/developer/faqs/?p=qdev&z=subnav&loc=8#general)`
3333
+ : `onManageSubscription: getSubscriptionStatus failed: ${(0, utils_2.fmtError)(e)}`;
3322
3334
  this.#features.lsp.window
3323
3335
  .showMessage({
3324
- message: `onManageSubscription: getSubscriptionStatus failed: ${(0, utils_2.fmtError)(e)}`,
3336
+ message,
3325
3337
  type: protocol_1.MessageType.Error,
3326
3338
  })
3327
3339
  .catch(e => {