Skip to content

Commit c650809

Browse files
Public preview for CodeWhisperer Enterprise (#3921)
Co-authored-by: Will Lo <[email protected]>
1 parent 950a52b commit c650809

28 files changed

+1689
-24
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "feature",
3+
"description" : "Public preview for CodeWhisperer Enterprise: Enterprise customers can now customize CodeWhisperer to adopt and suggest code based on organization specific codebases."
4+
}

jetbrains-core/resources/META-INF/plugin.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ with what features/services are supported.
129129
topic="software.aws.toolkits.jetbrains.core.credentials.ToolkitConnectionManagerListener"/>
130130
<listener class="software.aws.toolkits.jetbrains.services.codewhisperer.startup.CodeWhispererProjectStartupSettingsListener"
131131
topic="software.aws.toolkits.jetbrains.core.credentials.sso.bearer.BearerTokenProviderListener"/>
132+
<listener class="software.aws.toolkits.jetbrains.services.codewhisperer.startup.CodeWhispererProjectStartupSettingsListener"
133+
topic="software.aws.toolkits.jetbrains.services.codewhisperer.customization.CodeWhispererCustomizationListener"/>
132134
</projectListeners>
133135

134136
<applicationListeners>
@@ -293,6 +295,8 @@ with what features/services are supported.
293295
<applicationService serviceImplementation="software.aws.toolkits.jetbrains.services.codewhisperer.service.CodeWhispererLicenseInfoManager"/>
294296
<applicationService serviceImplementation="software.aws.toolkits.jetbrains.services.codewhisperer.service.CodeWhispererAutoTriggerService"/>
295297
<applicationService serviceImplementation="software.aws.toolkits.jetbrains.services.codewhisperer.service.CodeWhispererUserGroupSettings"/>
298+
<applicationService serviceInterface="software.aws.toolkits.jetbrains.services.codewhisperer.customization.CodeWhispererModelConfigurator"
299+
serviceImplementation="software.aws.toolkits.jetbrains.services.codewhisperer.customization.DefaultCodeWhispererModelConfigurator"/>
296300

297301
<projectService serviceImplementation="software.aws.toolkits.jetbrains.services.codewhisperer.toolwindow.CodeWhispererCodeReferenceManager"/>
298302
<projectService serviceInterface="software.aws.toolkits.jetbrains.services.codewhisperer.credentials.CodeWhispererClientAdaptor"
Lines changed: 7 additions & 0 deletions
Loading

jetbrains-core/resources/telemetryOverride.json

Lines changed: 256 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
"name": "codecatalyst_devEnvironmentWorkflowStep",
3434
"type": "string",
3535
"description": "Workflow step name"
36+
},
37+
{
38+
"name": "codewhispererCustomizationArn",
39+
"type": "string",
40+
"description": "The currently selected customization arn(None if using the base model)"
3641
}
3742
],
3843
"metrics": [
@@ -103,6 +108,257 @@
103108
{ "type": "codecatalyst_devEnvironmentWorkflowStep"},
104109
{ "type": "codecatalyst_devEnvironmentWorkflowError", "required": false }
105110
]
111+
},
112+
{
113+
"name": "codewhisperer_serviceInvocation",
114+
"description": "Client side invocation of the CodeWhisperer service for suggestion",
115+
"metadata": [
116+
{
117+
"type": "codewhispererAutomatedTriggerType",
118+
"required": false
119+
},
120+
{
121+
"type": "codewhispererCompletionType",
122+
"required": false
123+
},
124+
{
125+
"type": "codewhispererCursorOffset"
126+
},
127+
{
128+
"type": "codewhispererLanguage"
129+
},
130+
{
131+
"type": "codewhispererLastSuggestionIndex",
132+
"required": false
133+
},
134+
{
135+
"type": "codewhispererLineNumber"
136+
},
137+
{
138+
"type": "codewhispererRequestId",
139+
"required": false
140+
},
141+
{
142+
"type": "codewhispererRuntime",
143+
"required": false
144+
},
145+
{
146+
"type": "codewhispererRuntimeSource",
147+
"required": false
148+
},
149+
{
150+
"type": "codewhispererSessionId",
151+
"required": false
152+
},
153+
{
154+
"type": "codewhispererSupplementalContextTimeout",
155+
"required": false
156+
},
157+
{
158+
"type": "codewhispererSupplementalContextIsUtg",
159+
"required": false
160+
},
161+
{
162+
"type": "codewhispererSupplementalContextLatency",
163+
"required": false
164+
},
165+
{
166+
"type": "codewhispererSupplementalContextLength",
167+
"required": false
168+
},
169+
{
170+
"type": "codewhispererTriggerType"
171+
},
172+
{
173+
"type": "duration"
174+
},
175+
{
176+
"type": "reason",
177+
"required": false
178+
},
179+
{
180+
"type": "result"
181+
},
182+
{
183+
"type": "credentialStartUrl",
184+
"required": false
185+
},
186+
{
187+
"type": "codewhispererImportRecommendationEnabled",
188+
"required": false
189+
},
190+
{
191+
"type": "codewhispererCustomizationArn",
192+
"required": false
193+
},
194+
{
195+
"type": "codewhispererUserGroup"
196+
},
197+
{
198+
"type": "codewhispererGettingStartedTask",
199+
"required": false
200+
}
201+
]
202+
},
203+
{
204+
"name": "codewhisperer_codePercentage",
205+
"description": "Percentage of user tokens against suggestions until 5 mins of time",
206+
"metadata": [
207+
{
208+
"type": "codewhispererAcceptedTokens"
209+
},
210+
{
211+
"type": "codewhispererLanguage"
212+
},
213+
{
214+
"type": "codewhispererPercentage"
215+
},
216+
{
217+
"type": "codewhispererTotalTokens"
218+
},
219+
{
220+
"type": "reason",
221+
"required": false
222+
},
223+
{
224+
"type": "successCount"
225+
},
226+
{
227+
"type": "codewhispererCustomizationArn",
228+
"required": false
229+
},
230+
{
231+
"type": "codewhispererUserGroup"
232+
}
233+
],
234+
"passive": true
235+
},
236+
{
237+
"name": "codewhisperer_userTriggerDecision",
238+
"description": "User decision aggregated at trigger level",
239+
"metadata": [
240+
{
241+
"type": "codewhispererSessionId",
242+
"required": false
243+
},
244+
{
245+
"type": "codewhispererFirstRequestId"
246+
},
247+
{
248+
"type": "credentialStartUrl",
249+
"required": false
250+
},
251+
{
252+
"type": "codewhispererIsPartialAcceptance",
253+
"required": false
254+
},
255+
{
256+
"type": "codewhispererPartialAcceptanceCount",
257+
"required": false
258+
},
259+
{
260+
"type": "codewhispererCharactersAccepted",
261+
"required": false
262+
},
263+
{
264+
"type": "codewhispererCharactersRecommended",
265+
"required": false
266+
},
267+
{
268+
"type": "reason",
269+
"required": false
270+
},
271+
{
272+
"type": "codewhispererCompletionType"
273+
},
274+
{
275+
"type": "codewhispererLanguage"
276+
},
277+
{
278+
"type": "codewhispererGettingStartedTask",
279+
"required": false
280+
},
281+
{
282+
"type": "codewhispererTriggerType"
283+
},
284+
{
285+
"type": "codewhispererAutomatedTriggerType",
286+
"required": false
287+
},
288+
{
289+
"type": "codewhispererLineNumber"
290+
},
291+
{
292+
"type": "codewhispererCursorOffset"
293+
},
294+
{
295+
"type": "codewhispererSuggestionCount"
296+
},
297+
{
298+
"type": "codewhispererSuggestionImportCount"
299+
},
300+
{
301+
"type": "codewhispererTotalShownTime",
302+
"required": false
303+
},
304+
{
305+
"type": "codewhispererTriggerCharacter",
306+
"required": false
307+
},
308+
{
309+
"type": "codewhispererTypeaheadLength"
310+
},
311+
{
312+
"type": "codewhispererTimeSinceLastDocumentChange",
313+
"required": false
314+
},
315+
{
316+
"type": "codewhispererTimeSinceLastUserDecision",
317+
"required": false
318+
},
319+
{
320+
"type": "codewhispererTimeToFirstRecommendation",
321+
"required": false
322+
},
323+
{
324+
"type": "codewhispererPreviousSuggestionState",
325+
"required": false
326+
},
327+
{
328+
"type": "codewhispererSuggestionState"
329+
},
330+
{
331+
"type": "codewhispererClassifierResult",
332+
"required": false
333+
},
334+
{
335+
"type": "codewhispererSupplementalContextTimeout",
336+
"required": false
337+
},
338+
{
339+
"type": "codewhispererSupplementalContextIsUtg",
340+
"required": false
341+
},
342+
{
343+
"type": "codewhispererSupplementalContextLength",
344+
"required": false
345+
},
346+
{
347+
"type": "codewhispererSupplementalContextStrategyId",
348+
"required": false
349+
},
350+
{
351+
"type": "codewhispererClassifierThreshold",
352+
"required": false
353+
},
354+
{
355+
"type": "codewhispererUserGroup"
356+
},
357+
{
358+
"type": "codewhispererCustomizationArn",
359+
"required": false
360+
}
361+
]
106362
}
107363
]
108364
}

jetbrains-core/src/icons/AwsIcons.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ object AwsIcons {
9595

9696
@JvmField val SQS_TOOL_WINDOW = load("/icons/resources/sqs/SqsToolWindow.svg") // 13x13
9797
}
98+
99+
object CodeWhisperer {
100+
@JvmField val CUSTOM = load("icons/resources/CodewhispererCustom.svg") // 16 * 16
101+
}
98102
}
99103

100104
object Actions {

0 commit comments

Comments
 (0)