@aws/lsp-codewhisperer 0.0.96 → 0.0.98

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 (106) hide show
  1. package/CHANGELOG.md +40 -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.d.ts +3 -1
  56. package/out/language-server/agenticChat/agenticChatController.js +55 -22
  57. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  58. package/out/language-server/agenticChat/constants/constants.d.ts +0 -3
  59. package/out/language-server/agenticChat/constants/constants.js +1 -7
  60. package/out/language-server/agenticChat/constants/constants.js.map +1 -1
  61. package/out/language-server/agenticChat/constants/modelSelection.d.ts +1 -0
  62. package/out/language-server/agenticChat/constants/modelSelection.js +5 -1
  63. package/out/language-server/agenticChat/constants/modelSelection.js.map +1 -1
  64. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +21 -13
  65. package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
  66. package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +12 -4
  67. package/out/language-server/agenticChat/tools/mcp/mcpManager.js +192 -37
  68. package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
  69. package/out/language-server/agenticChat/tools/mcp/mcpOauthClient.js.map +1 -1
  70. package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js +42 -20
  71. package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js.map +1 -1
  72. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +4 -0
  73. package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
  74. package/out/language-server/agenticChat/tools/toolServer.js +57 -12
  75. package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
  76. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.d.ts +48 -0
  77. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js +48 -0
  78. package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js.map +1 -0
  79. package/out/language-server/chat/chatSessionService.d.ts +17 -1
  80. package/out/language-server/chat/chatSessionService.js +28 -1
  81. package/out/language-server/chat/chatSessionService.js.map +1 -1
  82. package/out/language-server/configuration/transformConfigurationServer.d.ts +0 -13
  83. package/out/language-server/configuration/transformConfigurationServer.js +4 -112
  84. package/out/language-server/configuration/transformConfigurationServer.js.map +1 -1
  85. package/out/language-server/netTransform/atxTransformHandler.d.ts +2 -33
  86. package/out/language-server/netTransform/atxTransformHandler.js +130 -428
  87. package/out/language-server/netTransform/atxTransformHandler.js.map +1 -1
  88. package/out/language-server/netTransform/transformHandler.d.ts +0 -4
  89. package/out/language-server/netTransform/transformHandler.js +11 -39
  90. package/out/language-server/netTransform/transformHandler.js.map +1 -1
  91. package/out/language-server/netTransform/utils.d.ts +49 -0
  92. package/out/language-server/netTransform/utils.js +185 -0
  93. package/out/language-server/netTransform/utils.js.map +1 -0
  94. package/out/shared/amazonQServiceManager/AtxTokenServiceManager.d.ts +0 -1
  95. package/out/shared/amazonQServiceManager/AtxTokenServiceManager.js +14 -38
  96. package/out/shared/amazonQServiceManager/AtxTokenServiceManager.js.map +1 -1
  97. package/out/shared/codeWhispererService.js +2 -1
  98. package/out/shared/codeWhispererService.js.map +1 -1
  99. package/out/shared/telemetry/telemetryService.js +2 -1
  100. package/out/shared/telemetry/telemetryService.js.map +1 -1
  101. package/out/shared/utils.js +6 -4
  102. package/out/shared/utils.js.map +1 -1
  103. package/package.json +5 -4
  104. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +0 -211
  105. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +0 -207
  106. package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +0 -2
@@ -35,7 +35,7 @@ declare const GenerateCodeFromCommandsCommand_base: {
35
35
  * // const { QDeveloperStreamingClient, GenerateCodeFromCommandsCommand } = require("@amzn/amazon-q-developer-streaming-client"); // CommonJS import
36
36
  * const client = new QDeveloperStreamingClient(config);
37
37
  * const input = { // GenerateCodeFromCommandsRequest
38
- * outputFormat: "typescript/cdk" || "java/cdk" || "python/cdk" || "yaml/cfn" || "json/cfn", // required
38
+ * outputFormat: "typescript/cdk" || "java/cdk" || "python/cdk" || "yaml/cfn" || "json/cfn" || "terraform/iac", // required
39
39
  * commands: { // CommandInput Union: only one key present
40
40
  * commandsList: [ // CliCommandsList
41
41
  * "STRING_VALUE",
@@ -55,11 +55,11 @@ declare const GenerateCodeFromCommandsCommand_base: {
55
55
  * // },
56
56
  * // QuotaLevelExceededError: { // ServiceQuotaExceededException
57
57
  * // message: "STRING_VALUE", // required
58
- * // reason: "CONVERSATION_LIMIT_EXCEEDED",
58
+ * // reason: "CONVERSATION_LIMIT_EXCEEDED" || "MONTHLY_REQUEST_COUNT" || "OVERAGE_REQUEST_LIMIT_EXCEEDED",
59
59
  * // },
60
60
  * // ValidationError: { // ValidationException
61
61
  * // message: "STRING_VALUE", // required
62
- * // reason: "INVALID_CONVERSATION_ID" || "CONTENT_LENGTH_EXCEEDS_THRESHOLD" || "INVALID_KMS_GRANT",
62
+ * // reason: "INVALID_CONVERSATION_ID" || "CONTENT_LENGTH_EXCEEDS_THRESHOLD" || "INVALID_KMS_GRANT" || "INVALID_MODEL_ID",
63
63
  * // },
64
64
  * // },
65
65
  * // };
@@ -75,12 +75,12 @@ declare const GenerateCodeFromCommandsCommand_base: {
75
75
  * @throws {@link InternalServerException} (server fault)
76
76
  * This exception is thrown when an unexpected error occurred during the processing of a request.
77
77
  *
78
- * @throws {@link ThrottlingException} (client fault)
79
- * This exception is thrown when request was denied due to request throttling.
80
- *
81
78
  * @throws {@link ValidationException} (client fault)
82
79
  * This exception is thrown when the input fails to satisfy the constraints specified by the service.
83
80
  *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * This exception is thrown when request was denied due to request throttling.
83
+ *
84
84
  * @throws {@link AccessDeniedException} (client fault)
85
85
  * This exception is thrown when the user does not have sufficient access to perform this action.
86
86
  *
@@ -224,6 +224,9 @@ declare const SendMessageCommand_base: {
224
224
  * name: "STRING_VALUE", // required
225
225
  * description: "STRING_VALUE",
226
226
  * },
227
+ * cachePoint: { // CachePoint
228
+ * type: "default", // required
229
+ * },
227
230
  * },
228
231
  * ],
229
232
  * },
@@ -238,6 +241,12 @@ declare const SendMessageCommand_base: {
238
241
  * },
239
242
  * ],
240
243
  * modelId: "STRING_VALUE",
244
+ * cachePoint: {
245
+ * type: "default", // required
246
+ * },
247
+ * clientCacheConfig: { // ClientCacheConfig
248
+ * useClientCachingOnly: true || false,
249
+ * },
241
250
  * },
242
251
  * assistantResponseMessage: { // AssistantResponseMessage
243
252
  * messageId: "STRING_VALUE",
@@ -271,6 +280,16 @@ declare const SendMessageCommand_base: {
271
280
  * input: "DOCUMENT_VALUE", // required
272
281
  * },
273
282
  * ],
283
+ * cachePoint: {
284
+ * type: "default", // required
285
+ * },
286
+ * reasoningContent: { // ReasoningContent Union: only one key present
287
+ * reasoningText: { // ReasoningText
288
+ * text: "STRING_VALUE", // required
289
+ * signature: "STRING_VALUE",
290
+ * },
291
+ * redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
292
+ * },
274
293
  * },
275
294
  * },
276
295
  * ],
@@ -408,6 +427,7 @@ declare const SendMessageCommand_base: {
408
427
  * name: "STRING_VALUE", // required
409
428
  * description: "STRING_VALUE",
410
429
  * },
430
+ * cachePoint: "<CachePoint>",
411
431
  * },
412
432
  * ],
413
433
  * },
@@ -422,6 +442,10 @@ declare const SendMessageCommand_base: {
422
442
  * },
423
443
  * ],
424
444
  * modelId: "STRING_VALUE",
445
+ * cachePoint: "<CachePoint>",
446
+ * clientCacheConfig: {
447
+ * useClientCachingOnly: true || false,
448
+ * },
425
449
  * },
426
450
  * assistantResponseMessage: {
427
451
  * messageId: "STRING_VALUE",
@@ -455,10 +479,20 @@ declare const SendMessageCommand_base: {
455
479
  * input: "DOCUMENT_VALUE", // required
456
480
  * },
457
481
  * ],
482
+ * cachePoint: "<CachePoint>",
483
+ * reasoningContent: {// Union: only one key present
484
+ * reasoningText: {
485
+ * text: "STRING_VALUE", // required
486
+ * signature: "STRING_VALUE",
487
+ * },
488
+ * redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
489
+ * },
458
490
  * },
459
491
  * },
460
492
  * chatTriggerType: "MANUAL" || "DIAGNOSTIC" || "INLINE_CHAT", // required
461
493
  * customizationArn: "STRING_VALUE",
494
+ * agentContinuationId: "STRING_VALUE",
495
+ * agentTaskType: "vibe" || "spectask",
462
496
  * },
463
497
  * profileArn: "STRING_VALUE",
464
498
  * source: "STRING_VALUE",
@@ -476,6 +510,11 @@ declare const SendMessageCommand_base: {
476
510
  * // content: "STRING_VALUE", // required
477
511
  * // modelId: "STRING_VALUE",
478
512
  * // },
513
+ * // reasoningContentEvent: { // ReasoningContentEvent
514
+ * // text: "STRING_VALUE",
515
+ * // redactedContent: new Uint8Array(),
516
+ * // signature: "STRING_VALUE",
517
+ * // },
479
518
  * // dryRunSucceedEvent: {},
480
519
  * // codeReferenceEvent: { // CodeReferenceEvent
481
520
  * // references: [ // References
@@ -730,6 +769,24 @@ declare const SendMessageCommand_base: {
730
769
  * // status: "success" || "error",
731
770
  * // },
732
771
  * // },
772
+ * // metadataEvent: { // MetadataEvent
773
+ * // tokenUsage: { // TokenUsage
774
+ * // uncachedInputTokens: Number("int"), // required
775
+ * // outputTokens: Number("int"), // required
776
+ * // totalTokens: Number("int"), // required
777
+ * // cacheReadInputTokens: Number("int"),
778
+ * // cacheWriteInputTokens: Number("int"),
779
+ * // contextUsagePercentage: Number("float"),
780
+ * // },
781
+ * // },
782
+ * // meteringEvent: { // MeteringEvent
783
+ * // usage: Number("double"),
784
+ * // unit: "STRING_VALUE",
785
+ * // unitPlural: "STRING_VALUE",
786
+ * // },
787
+ * // contextUsageEvent: { // ContextUsageEvent
788
+ * // contextUsagePercentage: Number("float"),
789
+ * // },
733
790
  * // citationEvent: { // CitationEvent
734
791
  * // target: { // CitationTarget Union: only one key present
735
792
  * // location: Number("int"),
@@ -763,26 +820,26 @@ declare const SendMessageCommand_base: {
763
820
  * @throws {@link InternalServerException} (server fault)
764
821
  * This exception is thrown when an unexpected error occurred during the processing of a request.
765
822
  *
766
- * @throws {@link ServiceQuotaExceededException} (client fault)
767
- * This exception is thrown when request was denied due to caller exceeding their usage limits
768
- *
769
- * @throws {@link DryRunOperationException} (client fault)
770
- * This exception is translated to a 204 as it succeeded the IAM Auth.
823
+ * @throws {@link ValidationException} (client fault)
824
+ * This exception is thrown when the input fails to satisfy the constraints specified by the service.
771
825
  *
772
826
  * @throws {@link ThrottlingException} (client fault)
773
827
  * This exception is thrown when request was denied due to request throttling.
774
828
  *
775
- * @throws {@link ValidationException} (client fault)
776
- * This exception is thrown when the input fails to satisfy the constraints specified by the service.
829
+ * @throws {@link AccessDeniedException} (client fault)
830
+ * This exception is thrown when the user does not have sufficient access to perform this action.
777
831
  *
778
- * @throws {@link ConflictException} (client fault)
779
- * This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
832
+ * @throws {@link DryRunOperationException} (client fault)
833
+ * This exception is translated to a 204 as it succeeded the IAM Auth.
780
834
  *
781
835
  * @throws {@link ResourceNotFoundException} (client fault)
782
836
  * This exception is thrown when describing a resource that does not exist.
783
837
  *
784
- * @throws {@link AccessDeniedException} (client fault)
785
- * This exception is thrown when the user does not have sufficient access to perform this action.
838
+ * @throws {@link ConflictException} (client fault)
839
+ * This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
840
+ *
841
+ * @throws {@link ServiceQuotaExceededException} (client fault)
842
+ * This exception is thrown when request was denied due to caller exceeding their usage limits
786
843
  *
787
844
  * @throws {@link QDeveloperStreamingServiceException}
788
845
  * <p>Base exception class for all service exceptions from QDeveloperStreaming service.</p>
@@ -0,0 +1,28 @@
1
+ import { Endpoint, EndpointV2, Provider, EndpointParameters as __EndpointParameters } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
7
+ region?: string | Provider<string>;
8
+ }
9
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
10
+ defaultSigningName: string;
11
+ };
12
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
13
+ defaultSigningName: string;
14
+ };
15
+ export declare const commonParams: {
16
+ readonly endpoint: {
17
+ readonly type: "builtInParams";
18
+ readonly name: "endpoint";
19
+ };
20
+ readonly region: {
21
+ readonly type: "builtInParams";
22
+ readonly name: "region";
23
+ };
24
+ };
25
+ export interface EndpointParameters extends __EndpointParameters {
26
+ endpoint?: string;
27
+ region?: string;
28
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointParameters } from "./EndpointParameters";
2
+ import { EndpointV2, Logger } from "@smithy/types";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -1,5 +1,6 @@
1
1
  export * from "./QDeveloperStreamingClient";
2
2
  export * from "./QDeveloperStreaming";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
3
4
  export type { RuntimeExtension } from "./runtimeExtensions";
4
5
  export type { QDeveloperStreamingExtensionConfiguration } from "./extensionConfiguration";
5
6
  export * from "./commands";