Skip to content

Commit 5f35e4d

Browse files
authored
deps: updated codewhispererstreaming client with latest model changes (#5523)
1. Updated the service-2.json file of the codewhispererstreaming client, copied the output from `/aws-sdk-external-2023-11-27/c2j/codewhispererstreaming-2023-11-27.normal.json`. 2. Certain build (`./gradlew :plugin-amazonq:buildPlugin`) and test case (`./gradlew :plugin-amazonq:test`) were failing as a result also applied small fixes for it in files: - plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/clients/chat/v1/ChatSessionV1.kt - plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt - plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/ArtifactHandler.kt - plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/constants/CodeTransformChatItems.kt
1 parent 0a8745e commit 5f35e4d

File tree

5 files changed

+2040
-159
lines changed

5 files changed

+2040
-159
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/clients/chat/v1/ChatSessionV1.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ class ChatSessionV1(
294294
UserIntent.EXPLAIN_CODE_SELECTION -> FollowUpType.ExplainInDetail
295295
UserIntent.UNKNOWN_TO_SDK_VERSION -> FollowUpType.Generated
296296
UserIntent.GENERATE_UNIT_TESTS -> FollowUpType.Generated
297+
UserIntent.GENERATE_CLOUDFORMATION_TEMPLATE -> FollowUpType.Generated
298+
UserIntent.CODE_GENERATION -> FollowUpType.Generated
297299
null -> FollowUpType.Generated
298300
}
299301

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class TelemetryHelper(private val project: Project, private val sessionStorage:
6464
UserIntent.EXPLAIN_CODE_SELECTION -> CwsprChatUserIntent.ExplainCodeSelection
6565
UserIntent.GENERATE_UNIT_TESTS -> CwsprChatUserIntent.GenerateUnitTests
6666
UserIntent.UNKNOWN_TO_SDK_VERSION -> CwsprChatUserIntent.Unknown
67+
UserIntent.GENERATE_CLOUDFORMATION_TEMPLATE -> CwsprChatUserIntent.Unknown
68+
UserIntent.CODE_GENERATION -> CwsprChatUserIntent.Unknown
6769
}
6870

6971
private fun getTelemetryTriggerType(triggerType: TriggerType): CwsprChatTriggerInteraction = when (triggerType) {

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/ArtifactHandler.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ class ArtifactHandler(
528528
TransformationDownloadArtifactType.CLIENT_INSTRUCTIONS -> CodeTransformArtifactType.ClientInstructions
529529
TransformationDownloadArtifactType.LOGS -> CodeTransformArtifactType.Logs
530530
TransformationDownloadArtifactType.UNKNOWN_TO_SDK_VERSION -> CodeTransformArtifactType.Unknown
531+
TransformationDownloadArtifactType.GENERATED_CODE -> CodeTransformArtifactType.Unknown
531532
}
532533

533534
companion object {

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/constants/CodeTransformChatItems.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,4 +778,5 @@ fun getDownloadedArtifactTextFromType(artifactType: TransformationDownloadArtifa
778778
TransformationDownloadArtifactType.CLIENT_INSTRUCTIONS -> "upgraded code"
779779
TransformationDownloadArtifactType.LOGS -> "build log"
780780
TransformationDownloadArtifactType.UNKNOWN_TO_SDK_VERSION -> "code"
781+
TransformationDownloadArtifactType.GENERATED_CODE -> "code"
781782
}

0 commit comments

Comments
 (0)