@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
package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/
|
|
|
2
2
|
import { ExportResultArchiveCommandInput, ExportResultArchiveCommandOutput } from "./commands/ExportResultArchiveCommand";
|
|
3
3
|
import { GenerateAssistantResponseCommandInput, GenerateAssistantResponseCommandOutput } from "./commands/GenerateAssistantResponseCommand";
|
|
4
4
|
import { GenerateTaskAssistPlanCommandInput, GenerateTaskAssistPlanCommandOutput } from "./commands/GenerateTaskAssistPlanCommand";
|
|
5
|
+
import { InvokeMCPCommandInput, InvokeMCPCommandOutput } from "./commands/InvokeMCPCommand";
|
|
5
6
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
6
7
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
7
8
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
@@ -16,11 +17,11 @@ export { __Client };
|
|
|
16
17
|
/**
|
|
17
18
|
* @public
|
|
18
19
|
*/
|
|
19
|
-
export type ServiceInputTypes = ExportResultArchiveCommandInput | GenerateAssistantResponseCommandInput | GenerateTaskAssistPlanCommandInput | SendMessageCommandInput;
|
|
20
|
+
export type ServiceInputTypes = ExportResultArchiveCommandInput | GenerateAssistantResponseCommandInput | GenerateTaskAssistPlanCommandInput | InvokeMCPCommandInput | SendMessageCommandInput;
|
|
20
21
|
/**
|
|
21
22
|
* @public
|
|
22
23
|
*/
|
|
23
|
-
export type ServiceOutputTypes = ExportResultArchiveCommandOutput | GenerateAssistantResponseCommandOutput | GenerateTaskAssistPlanCommandOutput | SendMessageCommandOutput;
|
|
24
|
+
export type ServiceOutputTypes = ExportResultArchiveCommandOutput | GenerateAssistantResponseCommandOutput | GenerateTaskAssistPlanCommandOutput | InvokeMCPCommandOutput | SendMessageCommandOutput;
|
|
24
25
|
/**
|
|
25
26
|
* @public
|
|
26
27
|
*/
|
|
@@ -80,18 +80,18 @@ declare const ExportResultArchiveCommand_base: {
|
|
|
80
80
|
* @throws {@link InternalServerException} (server fault)
|
|
81
81
|
* This exception is thrown when an unexpected error occurred during the processing of a request.
|
|
82
82
|
*
|
|
83
|
-
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
-
* This exception is thrown when request was denied due to request throttling.
|
|
85
|
-
*
|
|
86
83
|
* @throws {@link ValidationException} (client fault)
|
|
87
84
|
* This exception is thrown when the input fails to satisfy the constraints specified by the service.
|
|
88
85
|
*
|
|
89
|
-
* @throws {@link
|
|
90
|
-
* This exception is thrown when
|
|
86
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
87
|
+
* This exception is thrown when request was denied due to request throttling.
|
|
91
88
|
*
|
|
92
89
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
93
90
|
* This exception is thrown when describing a resource that does not exist.
|
|
94
91
|
*
|
|
92
|
+
* @throws {@link ConflictException} (client fault)
|
|
93
|
+
* This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
|
|
94
|
+
*
|
|
95
95
|
* @throws {@link AccessDeniedException} (client fault)
|
|
96
96
|
* This exception is thrown when the user does not have sufficient access to perform this action.
|
|
97
97
|
*
|
|
@@ -223,6 +223,9 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
223
223
|
* name: "STRING_VALUE", // required
|
|
224
224
|
* description: "STRING_VALUE",
|
|
225
225
|
* },
|
|
226
|
+
* cachePoint: { // CachePoint
|
|
227
|
+
* type: "default", // required
|
|
228
|
+
* },
|
|
226
229
|
* },
|
|
227
230
|
* ],
|
|
228
231
|
* },
|
|
@@ -237,6 +240,12 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
237
240
|
* },
|
|
238
241
|
* ],
|
|
239
242
|
* modelId: "STRING_VALUE",
|
|
243
|
+
* cachePoint: {
|
|
244
|
+
* type: "default", // required
|
|
245
|
+
* },
|
|
246
|
+
* clientCacheConfig: { // ClientCacheConfig
|
|
247
|
+
* useClientCachingOnly: true || false,
|
|
248
|
+
* },
|
|
240
249
|
* },
|
|
241
250
|
* assistantResponseMessage: { // AssistantResponseMessage
|
|
242
251
|
* messageId: "STRING_VALUE",
|
|
@@ -270,6 +279,16 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
270
279
|
* input: "DOCUMENT_VALUE", // required
|
|
271
280
|
* },
|
|
272
281
|
* ],
|
|
282
|
+
* cachePoint: {
|
|
283
|
+
* type: "default", // required
|
|
284
|
+
* },
|
|
285
|
+
* reasoningContent: { // ReasoningContent Union: only one key present
|
|
286
|
+
* reasoningText: { // ReasoningText
|
|
287
|
+
* text: "STRING_VALUE", // required
|
|
288
|
+
* signature: "STRING_VALUE",
|
|
289
|
+
* },
|
|
290
|
+
* redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
291
|
+
* },
|
|
273
292
|
* },
|
|
274
293
|
* },
|
|
275
294
|
* ],
|
|
@@ -407,6 +426,7 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
407
426
|
* name: "STRING_VALUE", // required
|
|
408
427
|
* description: "STRING_VALUE",
|
|
409
428
|
* },
|
|
429
|
+
* cachePoint: "<CachePoint>",
|
|
410
430
|
* },
|
|
411
431
|
* ],
|
|
412
432
|
* },
|
|
@@ -421,6 +441,10 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
421
441
|
* },
|
|
422
442
|
* ],
|
|
423
443
|
* modelId: "STRING_VALUE",
|
|
444
|
+
* cachePoint: "<CachePoint>",
|
|
445
|
+
* clientCacheConfig: {
|
|
446
|
+
* useClientCachingOnly: true || false,
|
|
447
|
+
* },
|
|
424
448
|
* },
|
|
425
449
|
* assistantResponseMessage: {
|
|
426
450
|
* messageId: "STRING_VALUE",
|
|
@@ -454,12 +478,23 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
454
478
|
* input: "DOCUMENT_VALUE", // required
|
|
455
479
|
* },
|
|
456
480
|
* ],
|
|
481
|
+
* cachePoint: "<CachePoint>",
|
|
482
|
+
* reasoningContent: {// Union: only one key present
|
|
483
|
+
* reasoningText: {
|
|
484
|
+
* text: "STRING_VALUE", // required
|
|
485
|
+
* signature: "STRING_VALUE",
|
|
486
|
+
* },
|
|
487
|
+
* redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
488
|
+
* },
|
|
457
489
|
* },
|
|
458
490
|
* },
|
|
459
491
|
* chatTriggerType: "MANUAL" || "DIAGNOSTIC" || "INLINE_CHAT", // required
|
|
460
492
|
* customizationArn: "STRING_VALUE",
|
|
493
|
+
* agentContinuationId: "STRING_VALUE",
|
|
494
|
+
* agentTaskType: "vibe" || "spectask",
|
|
461
495
|
* },
|
|
462
496
|
* profileArn: "STRING_VALUE",
|
|
497
|
+
* agentMode: "STRING_VALUE",
|
|
463
498
|
* };
|
|
464
499
|
* const command = new GenerateAssistantResponseCommand(input);
|
|
465
500
|
* const response = await client.send(command);
|
|
@@ -474,6 +509,11 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
474
509
|
* // content: "STRING_VALUE", // required
|
|
475
510
|
* // modelId: "STRING_VALUE",
|
|
476
511
|
* // },
|
|
512
|
+
* // reasoningContentEvent: { // ReasoningContentEvent
|
|
513
|
+
* // text: "STRING_VALUE",
|
|
514
|
+
* // redactedContent: new Uint8Array(),
|
|
515
|
+
* // signature: "STRING_VALUE",
|
|
516
|
+
* // },
|
|
477
517
|
* // dryRunSucceedEvent: {},
|
|
478
518
|
* // codeReferenceEvent: { // CodeReferenceEvent
|
|
479
519
|
* // references: [ // References
|
|
@@ -728,6 +768,24 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
728
768
|
* // status: "success" || "error",
|
|
729
769
|
* // },
|
|
730
770
|
* // },
|
|
771
|
+
* // metadataEvent: { // MetadataEvent
|
|
772
|
+
* // tokenUsage: { // TokenUsage
|
|
773
|
+
* // uncachedInputTokens: Number("int"), // required
|
|
774
|
+
* // outputTokens: Number("int"), // required
|
|
775
|
+
* // totalTokens: Number("int"), // required
|
|
776
|
+
* // cacheReadInputTokens: Number("int"),
|
|
777
|
+
* // cacheWriteInputTokens: Number("int"),
|
|
778
|
+
* // contextUsagePercentage: Number("float"),
|
|
779
|
+
* // },
|
|
780
|
+
* // },
|
|
781
|
+
* // meteringEvent: { // MeteringEvent
|
|
782
|
+
* // usage: Number("double"),
|
|
783
|
+
* // unit: "STRING_VALUE",
|
|
784
|
+
* // unitPlural: "STRING_VALUE",
|
|
785
|
+
* // },
|
|
786
|
+
* // contextUsageEvent: { // ContextUsageEvent
|
|
787
|
+
* // contextUsagePercentage: Number("float"),
|
|
788
|
+
* // },
|
|
731
789
|
* // citationEvent: { // CitationEvent
|
|
732
790
|
* // target: { // CitationTarget Union: only one key present
|
|
733
791
|
* // location: Number("int"),
|
|
@@ -761,15 +819,22 @@ declare const GenerateAssistantResponseCommand_base: {
|
|
|
761
819
|
* @throws {@link InternalServerException} (server fault)
|
|
762
820
|
* This exception is thrown when an unexpected error occurred during the processing of a request.
|
|
763
821
|
*
|
|
764
|
-
* @throws {@link ThrottlingException} (client fault)
|
|
765
|
-
* This exception is thrown when request was denied due to request throttling.
|
|
766
|
-
*
|
|
767
822
|
* @throws {@link ValidationException} (client fault)
|
|
768
823
|
* This exception is thrown when the input fails to satisfy the constraints specified by the service.
|
|
769
824
|
*
|
|
825
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
826
|
+
* This exception is thrown when request was denied due to request throttling.
|
|
827
|
+
*
|
|
770
828
|
* @throws {@link AccessDeniedException} (client fault)
|
|
771
829
|
* This exception is thrown when the user does not have sufficient access to perform this action.
|
|
772
830
|
*
|
|
831
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
832
|
+
* This exception is thrown when the service is unavailable
|
|
833
|
+
*
|
|
834
|
+
*
|
|
835
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
836
|
+
* This exception is thrown when request was denied due to caller exceeding their usage limits
|
|
837
|
+
*
|
|
773
838
|
* @throws {@link CodeWhispererStreamingServiceException}
|
|
774
839
|
* <p>Base exception class for all service exceptions from CodeWhispererStreaming service.</p>
|
|
775
840
|
*
|
|
@@ -223,6 +223,9 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
223
223
|
* name: "STRING_VALUE", // required
|
|
224
224
|
* description: "STRING_VALUE",
|
|
225
225
|
* },
|
|
226
|
+
* cachePoint: { // CachePoint
|
|
227
|
+
* type: "default", // required
|
|
228
|
+
* },
|
|
226
229
|
* },
|
|
227
230
|
* ],
|
|
228
231
|
* },
|
|
@@ -237,6 +240,12 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
237
240
|
* },
|
|
238
241
|
* ],
|
|
239
242
|
* modelId: "STRING_VALUE",
|
|
243
|
+
* cachePoint: {
|
|
244
|
+
* type: "default", // required
|
|
245
|
+
* },
|
|
246
|
+
* clientCacheConfig: { // ClientCacheConfig
|
|
247
|
+
* useClientCachingOnly: true || false,
|
|
248
|
+
* },
|
|
240
249
|
* },
|
|
241
250
|
* assistantResponseMessage: { // AssistantResponseMessage
|
|
242
251
|
* messageId: "STRING_VALUE",
|
|
@@ -270,6 +279,16 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
270
279
|
* input: "DOCUMENT_VALUE", // required
|
|
271
280
|
* },
|
|
272
281
|
* ],
|
|
282
|
+
* cachePoint: {
|
|
283
|
+
* type: "default", // required
|
|
284
|
+
* },
|
|
285
|
+
* reasoningContent: { // ReasoningContent Union: only one key present
|
|
286
|
+
* reasoningText: { // ReasoningText
|
|
287
|
+
* text: "STRING_VALUE", // required
|
|
288
|
+
* signature: "STRING_VALUE",
|
|
289
|
+
* },
|
|
290
|
+
* redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
291
|
+
* },
|
|
273
292
|
* },
|
|
274
293
|
* },
|
|
275
294
|
* ],
|
|
@@ -407,6 +426,7 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
407
426
|
* name: "STRING_VALUE", // required
|
|
408
427
|
* description: "STRING_VALUE",
|
|
409
428
|
* },
|
|
429
|
+
* cachePoint: "<CachePoint>",
|
|
410
430
|
* },
|
|
411
431
|
* ],
|
|
412
432
|
* },
|
|
@@ -421,6 +441,10 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
421
441
|
* },
|
|
422
442
|
* ],
|
|
423
443
|
* modelId: "STRING_VALUE",
|
|
444
|
+
* cachePoint: "<CachePoint>",
|
|
445
|
+
* clientCacheConfig: {
|
|
446
|
+
* useClientCachingOnly: true || false,
|
|
447
|
+
* },
|
|
424
448
|
* },
|
|
425
449
|
* assistantResponseMessage: {
|
|
426
450
|
* messageId: "STRING_VALUE",
|
|
@@ -454,10 +478,20 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
454
478
|
* input: "DOCUMENT_VALUE", // required
|
|
455
479
|
* },
|
|
456
480
|
* ],
|
|
481
|
+
* cachePoint: "<CachePoint>",
|
|
482
|
+
* reasoningContent: {// Union: only one key present
|
|
483
|
+
* reasoningText: {
|
|
484
|
+
* text: "STRING_VALUE", // required
|
|
485
|
+
* signature: "STRING_VALUE",
|
|
486
|
+
* },
|
|
487
|
+
* redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
|
|
488
|
+
* },
|
|
457
489
|
* },
|
|
458
490
|
* },
|
|
459
491
|
* chatTriggerType: "MANUAL" || "DIAGNOSTIC" || "INLINE_CHAT", // required
|
|
460
492
|
* customizationArn: "STRING_VALUE",
|
|
493
|
+
* agentContinuationId: "STRING_VALUE",
|
|
494
|
+
* agentTaskType: "vibe" || "spectask",
|
|
461
495
|
* },
|
|
462
496
|
* workspaceState: { // WorkspaceState
|
|
463
497
|
* uploadId: "STRING_VALUE", // required
|
|
@@ -478,6 +512,11 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
478
512
|
* // content: "STRING_VALUE", // required
|
|
479
513
|
* // modelId: "STRING_VALUE",
|
|
480
514
|
* // },
|
|
515
|
+
* // reasoningContentEvent: { // ReasoningContentEvent
|
|
516
|
+
* // text: "STRING_VALUE",
|
|
517
|
+
* // redactedContent: new Uint8Array(),
|
|
518
|
+
* // signature: "STRING_VALUE",
|
|
519
|
+
* // },
|
|
481
520
|
* // dryRunSucceedEvent: {},
|
|
482
521
|
* // codeReferenceEvent: { // CodeReferenceEvent
|
|
483
522
|
* // references: [ // References
|
|
@@ -732,6 +771,24 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
732
771
|
* // status: "success" || "error",
|
|
733
772
|
* // },
|
|
734
773
|
* // },
|
|
774
|
+
* // metadataEvent: { // MetadataEvent
|
|
775
|
+
* // tokenUsage: { // TokenUsage
|
|
776
|
+
* // uncachedInputTokens: Number("int"), // required
|
|
777
|
+
* // outputTokens: Number("int"), // required
|
|
778
|
+
* // totalTokens: Number("int"), // required
|
|
779
|
+
* // cacheReadInputTokens: Number("int"),
|
|
780
|
+
* // cacheWriteInputTokens: Number("int"),
|
|
781
|
+
* // contextUsagePercentage: Number("float"),
|
|
782
|
+
* // },
|
|
783
|
+
* // },
|
|
784
|
+
* // meteringEvent: { // MeteringEvent
|
|
785
|
+
* // usage: Number("double"),
|
|
786
|
+
* // unit: "STRING_VALUE",
|
|
787
|
+
* // unitPlural: "STRING_VALUE",
|
|
788
|
+
* // },
|
|
789
|
+
* // contextUsageEvent: { // ContextUsageEvent
|
|
790
|
+
* // contextUsagePercentage: Number("float"),
|
|
791
|
+
* // },
|
|
735
792
|
* // citationEvent: { // CitationEvent
|
|
736
793
|
* // target: { // CitationTarget Union: only one key present
|
|
737
794
|
* // location: Number("int"),
|
|
@@ -765,12 +822,6 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
765
822
|
* @throws {@link InternalServerException} (server fault)
|
|
766
823
|
* This exception is thrown when an unexpected error occurred during the processing of a request.
|
|
767
824
|
*
|
|
768
|
-
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
769
|
-
* This exception is thrown when request was denied due to caller exceeding their usage limits
|
|
770
|
-
*
|
|
771
|
-
* @throws {@link ThrottlingException} (client fault)
|
|
772
|
-
* This exception is thrown when request was denied due to request throttling.
|
|
773
|
-
*
|
|
774
825
|
* @throws {@link ValidationException} (client fault)
|
|
775
826
|
* This exception is thrown when the input fails to satisfy the constraints specified by the service.
|
|
776
827
|
*
|
|
@@ -780,6 +831,12 @@ declare const GenerateTaskAssistPlanCommand_base: {
|
|
|
780
831
|
* @throws {@link ResourceNotFoundException} (client fault)
|
|
781
832
|
* This exception is thrown when describing a resource that does not exist.
|
|
782
833
|
*
|
|
834
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
835
|
+
* This exception is thrown when request was denied due to request throttling.
|
|
836
|
+
*
|
|
837
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
838
|
+
* This exception is thrown when request was denied due to caller exceeding their usage limits
|
|
839
|
+
*
|
|
783
840
|
* @throws {@link AccessDeniedException} (client fault)
|
|
784
841
|
* This exception is thrown when the user does not have sufficient access to perform this action.
|
|
785
842
|
*
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { CodeWhispererStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeWhispererStreamingClient";
|
|
2
|
+
import { InvokeMCPRequest, InvokeMCPResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link InvokeMCPCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface InvokeMCPCommandInput extends InvokeMCPRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link InvokeMCPCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface InvokeMCPCommandOutput extends InvokeMCPResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const InvokeMCPCommand_base: {
|
|
25
|
+
new (input: InvokeMCPCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeMCPCommandInput, InvokeMCPCommandOutput, CodeWhispererStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: InvokeMCPCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeMCPCommandInput, InvokeMCPCommandOutput, CodeWhispererStreamingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* MCP over HTTP operation supporting both request-response (Accept: application/json) and SSE (Accept: text/event-stream)
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { CodeWhispererStreamingClient, InvokeMCPCommand } from "@amzn/codewhisperer-streaming"; // ES Modules import
|
|
35
|
+
* // const { CodeWhispererStreamingClient, InvokeMCPCommand } = require("@amzn/codewhisperer-streaming"); // CommonJS import
|
|
36
|
+
* const client = new CodeWhispererStreamingClient(config);
|
|
37
|
+
* const input = { // InvokeMCPRequest
|
|
38
|
+
* jsonrpc: "STRING_VALUE",
|
|
39
|
+
* id: "DOCUMENT_VALUE",
|
|
40
|
+
* method: "STRING_VALUE", // required
|
|
41
|
+
* params: "DOCUMENT_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new InvokeMCPCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // InvokeMCPResponse
|
|
46
|
+
* // jsonrpc: "STRING_VALUE",
|
|
47
|
+
* // id: "DOCUMENT_VALUE",
|
|
48
|
+
* // result: "DOCUMENT_VALUE",
|
|
49
|
+
* // error: { // JsonRpcError
|
|
50
|
+
* // code: Number("int"), // required
|
|
51
|
+
* // message: "STRING_VALUE", // required
|
|
52
|
+
* // data: "DOCUMENT_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param InvokeMCPCommandInput - {@link InvokeMCPCommandInput}
|
|
59
|
+
* @returns {@link InvokeMCPCommandOutput}
|
|
60
|
+
* @see {@link InvokeMCPCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link InvokeMCPCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link CodeWhispererStreamingClientResolvedConfig | config} for CodeWhispererStreamingClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
* This exception is thrown when the input fails to satisfy the constraints specified by the service.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
68
|
+
* This exception is thrown when the user does not have sufficient access to perform this action.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* This exception is thrown when an unexpected error occurred during the processing of a request.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
74
|
+
* This exception is thrown when request was denied due to request throttling.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link CodeWhispererStreamingServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from CodeWhispererStreaming service.</p>
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class InvokeMCPCommand extends InvokeMCPCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: InvokeMCPRequest;
|
|
86
|
+
output: InvokeMCPResponse;
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: InvokeMCPCommandInput;
|
|
90
|
+
output: InvokeMCPCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts
CHANGED
|
@@ -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
|
|
767
|
-
* This exception is thrown when
|
|
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
|
|
776
|
-
* This exception is thrown when the
|
|
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
|
|
779
|
-
* This exception is
|
|
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
|
|
785
|
-
* This exception is thrown when the
|
|
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 CodeWhispererStreamingServiceException}
|
|
788
845
|
* <p>Base exception class for all service exceptions from CodeWhispererStreaming service.</p>
|