@aws/lsp-codewhisperer 0.0.102 → 0.0.104
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 +19 -0
- package/node_modules/@amzn/codewhisperer-runtime/LICENSE +1 -1
- package/node_modules/@amzn/codewhisperer-runtime/README.md +161 -14
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetUsageLimitsCommand.js +2 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableProfilesCommand.js +2 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_0.js +140 -80
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_1.js +25 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/protocols/Aws_restJson1.js +86 -3
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetUsageLimitsCommand.js +1 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableProfilesCommand.js +2 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_0.js +128 -71
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_1.js +24 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-es/protocols/Aws_restJson1.js +86 -3
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateSubscriptionTokenCommand.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateTaskAssistConversationCommand.d.ts +1 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteTaskAssistConversationCommand.d.ts +1 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetProfileCommand.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetUsageLimitsCommand.d.ts +32 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableModelsCommand.d.ts +10 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableProfilesCommand.d.ts +13 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableSubscriptionsCommand.d.ts +4 -2
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SendTelemetryEventCommand.d.ts +44 -0
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SetUserPreferenceCommand.d.ts +2 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/UpdateUsageLimitsCommand.d.ts +1 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_0.d.ts +595 -330
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_1.d.ts +271 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.native.d.ts +6 -1
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/abort-controller/package.json +3 -3
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/node-http-handler/dist-cjs/index.js +2 -2
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -2
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/node-http-handler/package.json +9 -9
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/schema/schema.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +19 -2
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +6 -0
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +19 -2
- package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/package.json +2 -2
- package/out/language-server/agenticChat/agenticChatController.js +7 -4
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.d.ts +2 -2
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js +4 -2
- package/out/language-server/agenticChat/context/agenticChatTriggerContext.js.map +1 -1
- package/out/language-server/agenticChat/tools/executeBash.d.ts +1 -1
- package/out/language-server/agenticChat/tools/executeBash.js +11 -2
- package/out/language-server/agenticChat/tools/executeBash.js.map +1 -1
- package/out/language-server/agenticChat/tools/fileSearch.d.ts +1 -1
- package/out/language-server/agenticChat/tools/fileSearch.js +1 -1
- package/out/language-server/agenticChat/tools/fileSearch.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsRead.d.ts +1 -1
- package/out/language-server/agenticChat/tools/fsRead.js +1 -1
- package/out/language-server/agenticChat/tools/fsRead.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsReplace.d.ts +1 -1
- package/out/language-server/agenticChat/tools/fsReplace.js +1 -1
- package/out/language-server/agenticChat/tools/fsReplace.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.d.ts +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.js +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
- package/out/language-server/agenticChat/tools/listDirectory.d.ts +1 -1
- package/out/language-server/agenticChat/tools/listDirectory.js +1 -1
- package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +5 -0
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +36 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolShared.d.ts +18 -5
- package/out/language-server/agenticChat/tools/toolShared.js +51 -10
- package/out/language-server/agenticChat/tools/toolShared.js.map +1 -1
- package/out/language-server/chat/chatSessionService.d.ts +4 -3
- package/out/language-server/chat/chatSessionService.js +9 -5
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.js +2 -2
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/inline-completion/handler/editCompletionHandler.js +2 -15
- package/out/language-server/inline-completion/handler/editCompletionHandler.js.map +1 -1
- package/out/language-server/inline-completion/handler/inlineCompletionHandler.js +1 -25
- package/out/language-server/inline-completion/handler/inlineCompletionHandler.js.map +1 -1
- package/out/language-server/inline-completion/utils/textDocumentUtils.d.ts +3 -0
- package/out/language-server/inline-completion/utils/textDocumentUtils.js +29 -1
- package/out/language-server/inline-completion/utils/textDocumentUtils.js.map +1 -1
- package/out/language-server/netTransform/artifactManager.js +1 -1
- package/out/language-server/netTransform/artifactManager.js.map +1 -1
- package/out/language-server/netTransform/atxTransformHandler.js +6 -0
- package/out/language-server/netTransform/atxTransformHandler.js.map +1 -1
- package/out/language-server/netTransform/metrics.js +1 -1
- package/out/language-server/netTransform/metrics.js.map +1 -1
- package/out/language-server/workspaceContext/workspaceFolderManager.js +1 -1
- package/out/language-server/workspaceContext/workspaceFolderManager.js.map +1 -1
- package/out/shared/telemetry/telemetryService.js +3 -0
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/telemetry/types.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,274 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CodeWhispererRuntimeServiceException as __BaseException } from "./CodeWhispererRuntimeServiceException";
|
|
2
|
+
import { Bonus, CodeGenerationStatus, ConversationState, Currency, Intent, IntentContext, OverageConfiguration, ResourceType, SubscriptionInfo, TaskAssistPlanStep, TotalUsage, UsageLimitList, UsageLimitType, UsageLimitUpdateRequestStatus, UserInfo, WorkspaceState } from "./models_0";
|
|
3
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
* @enum
|
|
7
|
+
*/
|
|
8
|
+
export declare const FreeTrialStatus: {
|
|
9
|
+
readonly ACTIVE: "ACTIVE";
|
|
10
|
+
readonly EXPIRED: "EXPIRED";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export type FreeTrialStatus = typeof FreeTrialStatus[keyof typeof FreeTrialStatus];
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export interface FreeTrialInfo {
|
|
20
|
+
/**
|
|
21
|
+
* Status of the free trial for this customer
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
freeTrialStatus?: FreeTrialStatus | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Unix timestamp of free trial expiry in seconds
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
freeTrialExpiry?: Date | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Current free trial usage
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
currentUsage?: number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Current free trial usage with Precision
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
currentUsageWithPrecision?: number | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Free trial usage limit
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
usageLimit?: number | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Free trial usage limit with Precision
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
usageLimitWithPrecision?: number | undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export interface UsageBreakdown {
|
|
55
|
+
/**
|
|
56
|
+
* The resource or dimension being billed, e.g. VIBE or SPEC
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
resourceType?: ResourceType | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Human-friendly display name of this resource
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
displayName?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Human-friendly display name of this resource in plural
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
displayNamePlural?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Current usage count for the billing period
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
currentUsage: number | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Current usage count for the billing period with Precision
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
currentUsageWithPrecision?: number | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Current overages count for the billing period
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
currentOverages: number | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Current overages count for the billing period with Precision
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
currentOveragesWithPrecision?: number | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Usage limit based on subscription tier
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
usageLimit: number | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Usage limit based on subscription tier with Precision
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
usageLimitWithPrecision?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Unit of measurement for the resource, e.g. INVOCATIONS
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
unit?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Total overage charges
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
overageCharges: number | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* The currency used for overage charges
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
currency: Currency | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Overage rate for the resource per 1 unit
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
overageRate?: number | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* The next reset date in UTC timezone.
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
nextDateReset?: Date | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* The maximum amount of usage allowed beyond the included quota in a billing period
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
overageCap?: number | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* The maximum amount of usage allowed beyond the included quota in a billing period with Precision
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
overageCapWithPrecision?: number | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* User's free trial info
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
freeTrialInfo?: FreeTrialInfo | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Redeemed bonuses
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
bonuses?: (Bonus)[] | undefined;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* @public
|
|
148
|
+
*/
|
|
149
|
+
export interface GetUsageLimitsResponse {
|
|
150
|
+
limits?: (UsageLimitList)[] | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* The next reset date in UTC timezone.
|
|
153
|
+
* @public
|
|
154
|
+
*/
|
|
155
|
+
nextDateReset?: Date | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Number of days remaining until the usage metrics reset
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
daysUntilReset?: number | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated
|
|
163
|
+
*
|
|
164
|
+
* Usage breakdown by SKU type
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
usageBreakdown?: UsageBreakdown | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* List of usage by resource type
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
usageBreakdownList?: (UsageBreakdown)[] | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Subscription Info
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
subscriptionInfo?: SubscriptionInfo | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Overage Configuration
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
overageConfiguration?: OverageConfiguration | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* User Information
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
userInfo?: UserInfo | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Total overage usage information
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
totalUsage?: TotalUsage | undefined;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @internal
|
|
196
|
+
*/
|
|
197
|
+
export declare const GetUsageLimitsResponseFilterSensitiveLog: (obj: GetUsageLimitsResponse) => any;
|
|
198
|
+
/**
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
export interface SetUserPreferenceRequest {
|
|
202
|
+
overageConfiguration?: OverageConfiguration | undefined;
|
|
203
|
+
profileArn?: string | undefined;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
export interface SetUserPreferenceResponse {
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Exception thrown when the number of usage limit update requests exceeds the monthly quota (default 3 requests per month)
|
|
212
|
+
* @public
|
|
213
|
+
*/
|
|
214
|
+
export declare class UpdateUsageLimitQuotaExceededException extends __BaseException {
|
|
215
|
+
readonly name: "UpdateUsageLimitQuotaExceededException";
|
|
216
|
+
readonly $fault: "client";
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
constructor(opts: __ExceptionOptionType<UpdateUsageLimitQuotaExceededException, __BaseException>);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export interface UpdateUsageLimitsRequest {
|
|
226
|
+
accountId: string | undefined;
|
|
227
|
+
accountlessUserId?: string | undefined;
|
|
228
|
+
directoryId?: string | undefined;
|
|
229
|
+
featureType: UsageLimitType | undefined;
|
|
230
|
+
requestedLimit: number | undefined;
|
|
231
|
+
justification?: string | undefined;
|
|
232
|
+
permanentOverride?: boolean | undefined;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
*/
|
|
237
|
+
export interface UpdateUsageLimitsResponse {
|
|
238
|
+
status: UsageLimitUpdateRequestStatus | undefined;
|
|
239
|
+
approvedLimit?: number | undefined;
|
|
240
|
+
remainingRequestsThisMonth?: number | undefined;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Structure to represent bootstrap conversation request.
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
export interface CreateTaskAssistConversationRequest {
|
|
247
|
+
profileArn?: string | undefined;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Structure to represent bootstrap conversation response.
|
|
251
|
+
* @public
|
|
252
|
+
*/
|
|
253
|
+
export interface CreateTaskAssistConversationResponse {
|
|
254
|
+
/**
|
|
255
|
+
* ID which represents a multi-turn conversation
|
|
256
|
+
* @public
|
|
257
|
+
*/
|
|
258
|
+
conversationId: string | undefined;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Structure to represent bootstrap conversation request.
|
|
262
|
+
* @public
|
|
263
|
+
*/
|
|
264
|
+
export interface DeleteTaskAssistConversationRequest {
|
|
265
|
+
/**
|
|
266
|
+
* ID which represents a multi-turn conversation
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
conversationId: string | undefined;
|
|
270
|
+
profileArn?: string | undefined;
|
|
271
|
+
}
|
|
2
272
|
/**
|
|
3
273
|
* Structure to represent bootstrap conversation response.
|
|
4
274
|
* @public
|
|
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: CodeWhispererRuntimeClientConfig
|
|
|
16
16
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
17
17
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
18
18
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
19
|
-
apiVersion: string;
|
|
20
19
|
cacheMiddleware?: boolean | undefined;
|
|
20
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
21
|
+
protocolSettings?: {
|
|
22
|
+
[setting: string]: unknown;
|
|
23
|
+
defaultNamespace?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
apiVersion: string;
|
|
21
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
27
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
28
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -24,8 +24,13 @@ export declare const getRuntimeConfig: (config: CodeWhispererRuntimeClientConfig
|
|
|
24
24
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
25
25
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
26
26
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
27
|
-
apiVersion: string;
|
|
28
27
|
cacheMiddleware?: boolean | undefined;
|
|
28
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
29
|
+
protocolSettings?: {
|
|
30
|
+
[setting: string]: unknown;
|
|
31
|
+
defaultNamespace?: string | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
apiVersion: string;
|
|
29
34
|
urlParser: import("@smithy/types").UrlParser;
|
|
30
35
|
base64Decoder: import("@smithy/types").Decoder;
|
|
31
36
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -6,8 +6,13 @@ export declare const getRuntimeConfig: (config: CodeWhispererRuntimeClientConfig
|
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
8
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
|
-
apiVersion: string;
|
|
10
9
|
cacheMiddleware?: boolean | undefined;
|
|
10
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
11
|
+
protocolSettings?: {
|
|
12
|
+
[setting: string]: unknown;
|
|
13
|
+
defaultNamespace?: string | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
apiVersion: string;
|
|
11
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
12
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
13
18
|
streamCollector: import("@smithy/types").StreamCollector;
|
package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/abort-controller/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/abort-controller",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.8",
|
|
4
4
|
"description": "A simple abort controller library",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/types": "^4.
|
|
29
|
+
"@smithy/types": "^4.12.0",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"concurrently": "7.0.0",
|
|
53
53
|
"downlevel-dts": "0.10.1",
|
|
54
|
-
"rimraf": "
|
|
54
|
+
"rimraf": "5.0.10",
|
|
55
55
|
"typedoc": "0.23.23"
|
|
56
56
|
},
|
|
57
57
|
"typedoc": {
|
|
@@ -231,7 +231,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
resolveDefaultConfig(options) {
|
|
234
|
-
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, } = options || {};
|
|
234
|
+
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger, } = options || {};
|
|
235
235
|
const keepAlive = true;
|
|
236
236
|
const maxSockets = 50;
|
|
237
237
|
return {
|
|
@@ -254,7 +254,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
254
254
|
}
|
|
255
255
|
return new https.Agent({ keepAlive, maxSockets, ...httpsAgent });
|
|
256
256
|
})(),
|
|
257
|
-
logger
|
|
257
|
+
logger,
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
260
|
destroy() {
|
|
@@ -61,7 +61,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
resolveDefaultConfig(options) {
|
|
64
|
-
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, } = options || {};
|
|
64
|
+
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger, } = options || {};
|
|
65
65
|
const keepAlive = true;
|
|
66
66
|
const maxSockets = 50;
|
|
67
67
|
return {
|
|
@@ -84,7 +84,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
84
84
|
}
|
|
85
85
|
return new hsAgent({ keepAlive, maxSockets, ...httpsAgent });
|
|
86
86
|
})(),
|
|
87
|
-
logger
|
|
87
|
+
logger,
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
destroy() {
|
package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/node-http-handler/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.9",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
7
7
|
"build:cjs": "node ../../scripts/inline node-http-handler",
|
|
8
8
|
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
9
9
|
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
10
|
-
"build:types:downlevel": "
|
|
11
|
-
"stage-release": "
|
|
12
|
-
"clean": "
|
|
10
|
+
"build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
11
|
+
"stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
13
13
|
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
14
14
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
15
15
|
"extract:docs": "api-extractor run --local",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"module": "./dist-es/index.js",
|
|
28
28
|
"types": "./dist-types/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@smithy/abort-controller": "^4.2.
|
|
31
|
-
"@smithy/protocol-http": "^5.3.
|
|
32
|
-
"@smithy/querystring-builder": "^4.2.
|
|
33
|
-
"@smithy/types": "^4.
|
|
30
|
+
"@smithy/abort-controller": "^4.2.8",
|
|
31
|
+
"@smithy/protocol-http": "^5.3.8",
|
|
32
|
+
"@smithy/querystring-builder": "^4.2.8",
|
|
33
|
+
"@smithy/types": "^4.12.0",
|
|
34
34
|
"tslib": "^2.6.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^18.11.9",
|
|
38
38
|
"concurrently": "7.0.0",
|
|
39
39
|
"downlevel-dts": "0.10.1",
|
|
40
|
-
"
|
|
40
|
+
"premove": "4.0.0",
|
|
41
41
|
"typedoc": "0.23.23"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
@@ -134,3 +134,10 @@ export interface ClientProtocol<Request, Response> extends ConfigurableSerdeCont
|
|
|
134
134
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
135
135
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
136
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
* @deprecated use $ClientProtocolCtor.
|
|
140
|
+
*/
|
|
141
|
+
export interface ClientProtocolCtor<Request, Response> {
|
|
142
|
+
new (args: any): ClientProtocol<Request, Response>;
|
|
143
|
+
}
|
|
@@ -219,6 +219,12 @@ export interface $ClientProtocol<Request, Response> extends ConfigurableSerdeCon
|
|
|
219
219
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
220
220
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: $OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
221
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export interface $ClientProtocolCtor<Request, Response> {
|
|
226
|
+
new (args: any): $ClientProtocol<Request, Response>;
|
|
227
|
+
}
|
|
222
228
|
/**
|
|
223
229
|
* Allows a protocol, codec, or serde utility to accept the serdeContext
|
|
224
230
|
* from a client configuration or request/response handlerExecutionContext.
|
|
@@ -15,6 +15,10 @@ export type StaticSchemaIdMap = 2;
|
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
17
|
export type StaticSchemaIdStruct = 3;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type StaticSchemaIdUnion = 4;
|
|
18
22
|
/**
|
|
19
23
|
* @public
|
|
20
24
|
*/
|
|
@@ -26,7 +30,7 @@ export type StaticSchemaIdOperation = 9;
|
|
|
26
30
|
/**
|
|
27
31
|
* @public
|
|
28
32
|
*/
|
|
29
|
-
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
|
|
33
|
+
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticUnionSchema | StaticErrorSchema | StaticOperationSchema;
|
|
30
34
|
/**
|
|
31
35
|
* @public
|
|
32
36
|
*/
|
|
@@ -56,6 +60,18 @@ export type StaticStructureSchema = [
|
|
|
56
60
|
ShapeName,
|
|
57
61
|
SchemaTraits,
|
|
58
62
|
string[],
|
|
63
|
+
$SchemaRef[],
|
|
64
|
+
number?
|
|
65
|
+
];
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export type StaticUnionSchema = [
|
|
70
|
+
StaticSchemaIdUnion,
|
|
71
|
+
ShapeNamespace,
|
|
72
|
+
ShapeName,
|
|
73
|
+
SchemaTraits,
|
|
74
|
+
string[],
|
|
59
75
|
$SchemaRef[]
|
|
60
76
|
];
|
|
61
77
|
/**
|
|
@@ -67,7 +83,8 @@ export type StaticErrorSchema = [
|
|
|
67
83
|
ShapeName,
|
|
68
84
|
SchemaTraits,
|
|
69
85
|
string[],
|
|
70
|
-
$SchemaRef[]
|
|
86
|
+
$SchemaRef[],
|
|
87
|
+
number?
|
|
71
88
|
];
|
|
72
89
|
/**
|
|
73
90
|
* @public
|
|
@@ -140,3 +140,10 @@ export interface ClientProtocol<Request, Response> extends ConfigurableSerdeCont
|
|
|
140
140
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
141
141
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* @public
|
|
145
|
+
* @deprecated use $ClientProtocolCtor.
|
|
146
|
+
*/
|
|
147
|
+
export interface ClientProtocolCtor<Request, Response> {
|
|
148
|
+
new (args: any): ClientProtocol<Request, Response>;
|
|
149
|
+
}
|
|
@@ -234,6 +234,12 @@ export interface $ClientProtocol<Request, Response> extends ConfigurableSerdeCon
|
|
|
234
234
|
updateServiceEndpoint(request: Request, endpoint: EndpointV2): Request;
|
|
235
235
|
deserializeResponse<Output extends MetadataBearer>(operationSchema: $OperationSchema, context: HandlerExecutionContext & SerdeFunctions, response: Response): Promise<Output>;
|
|
236
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export interface $ClientProtocolCtor<Request, Response> {
|
|
241
|
+
new (args: any): $ClientProtocol<Request, Response>;
|
|
242
|
+
}
|
|
237
243
|
/**
|
|
238
244
|
* Allows a protocol, codec, or serde utility to accept the serdeContext
|
|
239
245
|
* from a client configuration or request/response handlerExecutionContext.
|
|
@@ -15,6 +15,10 @@ export type StaticSchemaIdMap = 2;
|
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
17
|
export type StaticSchemaIdStruct = 3;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type StaticSchemaIdUnion = 4;
|
|
18
22
|
/**
|
|
19
23
|
* @public
|
|
20
24
|
*/
|
|
@@ -26,7 +30,7 @@ export type StaticSchemaIdOperation = 9;
|
|
|
26
30
|
/**
|
|
27
31
|
* @public
|
|
28
32
|
*/
|
|
29
|
-
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticErrorSchema | StaticOperationSchema;
|
|
33
|
+
export type StaticSchema = StaticSimpleSchema | StaticListSchema | StaticMapSchema | StaticStructureSchema | StaticUnionSchema | StaticErrorSchema | StaticOperationSchema;
|
|
30
34
|
/**
|
|
31
35
|
* @public
|
|
32
36
|
*/
|
|
@@ -75,6 +79,18 @@ export type StaticStructureSchema = [
|
|
|
75
79
|
ShapeName,
|
|
76
80
|
SchemaTraits,
|
|
77
81
|
string[],
|
|
82
|
+
$SchemaRef[],
|
|
83
|
+
number?
|
|
84
|
+
];
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export type StaticUnionSchema = [
|
|
89
|
+
StaticSchemaIdUnion,
|
|
90
|
+
ShapeNamespace,
|
|
91
|
+
ShapeName,
|
|
92
|
+
SchemaTraits,
|
|
93
|
+
string[],
|
|
78
94
|
$SchemaRef[]
|
|
79
95
|
];
|
|
80
96
|
/**
|
|
@@ -86,7 +102,8 @@ export type StaticErrorSchema = [
|
|
|
86
102
|
ShapeName,
|
|
87
103
|
SchemaTraits,
|
|
88
104
|
string[],
|
|
89
|
-
$SchemaRef[]
|
|
105
|
+
$SchemaRef[],
|
|
106
|
+
number?
|
|
90
107
|
];
|
|
91
108
|
/**
|
|
92
109
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/types",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline types",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"concurrently": "7.0.0",
|
|
51
51
|
"downlevel-dts": "0.10.1",
|
|
52
|
-
"rimraf": "
|
|
52
|
+
"rimraf": "5.0.10",
|
|
53
53
|
"typedoc": "0.23.23"
|
|
54
54
|
},
|
|
55
55
|
"typedoc": {
|
|
@@ -20,6 +20,7 @@ const chatTelemetryController_1 = require("../chat/telemetry/chatTelemetryContro
|
|
|
20
20
|
const quickActions_1 = require("../chat/quickActions");
|
|
21
21
|
const metric_1 = require("../../shared/telemetry/metric");
|
|
22
22
|
const utils_2 = require("../../shared/utils");
|
|
23
|
+
const languageDetection_1 = require("../../shared/languageDetection");
|
|
23
24
|
const constants_1 = require("../chat/constants");
|
|
24
25
|
const errors_1 = require("../../shared/amazonQServiceManager/errors");
|
|
25
26
|
const AmazonQTokenServiceManager_1 = require("../../shared/amazonQServiceManager/AmazonQTokenServiceManager");
|
|
@@ -798,7 +799,7 @@ class AgenticChatController {
|
|
|
798
799
|
this.#debug('Preparing request input');
|
|
799
800
|
// Get profileArn from the service manager if available
|
|
800
801
|
const profileArn = this.#serviceManager?.getActiveProfileArn();
|
|
801
|
-
const requestInput = await this.#triggerContext.getChatParamsFromTrigger(params, triggerContext, codewhisperer_streaming_1.ChatTriggerType.MANUAL, this.#customizationArn, chatResultStream, profileArn, this.#getTools(session), additionalContext, session.modelId, this.#origin, images);
|
|
802
|
+
const requestInput = await this.#triggerContext.getChatParamsFromTrigger(params, triggerContext, codewhisperer_streaming_1.ChatTriggerType.MANUAL, this.#customizationArn, chatResultStream, profileArn, this.#getTools(session), additionalContext, session.modelId, this.#origin, images, session.conversationId);
|
|
802
803
|
return requestInput;
|
|
803
804
|
}
|
|
804
805
|
/**
|
|
@@ -808,7 +809,7 @@ class AgenticChatController {
|
|
|
808
809
|
this.#debug('Preparing compaction request input');
|
|
809
810
|
// Get profileArn from the service manager if available
|
|
810
811
|
const profileArn = this.#serviceManager?.getActiveProfileArn();
|
|
811
|
-
const requestInput = this.#triggerContext.getCompactionChatCommandInput(profileArn, this.#getTools(session), session.modelId, this.#origin);
|
|
812
|
+
const requestInput = this.#triggerContext.getCompactionChatCommandInput(profileArn, this.#getTools(session), session.modelId, this.#origin, session.conversationId);
|
|
812
813
|
return requestInput;
|
|
813
814
|
}
|
|
814
815
|
/**
|
|
@@ -1466,7 +1467,7 @@ class AgenticChatController {
|
|
|
1466
1467
|
// After approval, add the path to the approved paths in the session
|
|
1467
1468
|
const inputPath = toolUse.input?.path || toolUse.input?.cwd;
|
|
1468
1469
|
if (inputPath) {
|
|
1469
|
-
session.addApprovedPath(inputPath);
|
|
1470
|
+
session.addApprovedPath(inputPath, toolUse.name);
|
|
1470
1471
|
}
|
|
1471
1472
|
const ws = this.#getWritableStream(chatResultStream, toolUse);
|
|
1472
1473
|
const result = await this.#features.agent.runTool(toolUse.name, toolUse.input, token, ws);
|
|
@@ -1556,11 +1557,13 @@ class AgenticChatController {
|
|
|
1556
1557
|
this.#telemetryController.emitInteractWithAgenticChat('GeneratedDiff', tabId, session.pairProgrammingMode, session.getConversationType(), this.#abTestingAllocation?.experimentName, this.#abTestingAllocation?.userVariation);
|
|
1557
1558
|
// Emit acceptedLineCount when write tool is used and code changes are accepted
|
|
1558
1559
|
const acceptedLineCount = (0, fileModificationMetrics_1.calculateModifiedLines)(toolUse, doc?.getText());
|
|
1560
|
+
const programmingLanguage = (0, languageDetection_1.getCodeWhispererLanguageIdFromPath)(input.path);
|
|
1559
1561
|
await this.#telemetryController.emitInteractWithMessageMetric(tabId, {
|
|
1560
1562
|
cwsprChatMessageId: chatResult.messageId ?? toolUse.toolUseId,
|
|
1561
1563
|
cwsprChatInteractionType: types_1.ChatInteractionType.AgenticCodeAccepted,
|
|
1562
1564
|
codewhispererCustomizationArn: this.#customizationArn,
|
|
1563
|
-
|
|
1565
|
+
cwsprChatProgrammingLanguage: programmingLanguage,
|
|
1566
|
+
}, acceptedLineCount, session.conversationId);
|
|
1564
1567
|
await chatResultStream.writeResultBlock(chatResult);
|
|
1565
1568
|
break;
|
|
1566
1569
|
case codeReview_1.CodeReview.toolName:
|