@aws/lsp-codewhisperer 0.0.97 → 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.
- package/CHANGELOG.md +28 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +259 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +14 -11
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/endpointResolver.js +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/ruleset.js +61 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +148 -64
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +92 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +16 -13
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/EndpointParameters.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/endpointResolver.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/ruleset.js +58 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +138 -57
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +94 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +6 -9
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +6 -6
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +68 -11
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/EndpointParameters.d.ts +28 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +472 -87
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/README.md +266 -7
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/InvokeMCPCommand.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +172 -58
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +164 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/InvokeMCPCommand.js +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +159 -51
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +163 -4
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +3 -2
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +68 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +63 -6
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/InvokeMCPCommand.d.ts +93 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +68 -11
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +585 -80
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/out/language-server/agenticChat/agenticChatController.js +17 -5
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +21 -13
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +12 -4
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +192 -37
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js +42 -20
- package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +4 -0
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolServer.js +57 -12
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.d.ts +3 -3
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js +4 -4
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js.map +1 -1
- package/out/language-server/netTransform/utils.js +2 -4
- package/out/language-server/netTransform/utils.js.map +1 -1
- package/out/shared/codeWhispererService.js +1 -0
- package/out/shared/codeWhispererService.js.map +1 -1
- package/out/shared/telemetry/telemetryService.js +2 -1
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/utils.js +6 -4
- package/out/shared/utils.js.map +1 -1
- package/package.json +5 -4
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +0 -211
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +0 -207
- 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
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
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
|
|
3336
|
+
message,
|
|
3325
3337
|
type: protocol_1.MessageType.Error,
|
|
3326
3338
|
})
|
|
3327
3339
|
.catch(e => {
|