Skip to content

Commit 8d0b51a

Browse files
Merge branch 'main' into samgst/q-chat-reauth-profile-select-bug
2 parents 13a044b + b6cf812 commit 8d0b51a

File tree

21 files changed

+160
-64
lines changed

21 files changed

+160
-64
lines changed

.changes/3.75.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2025-06-11",
3+
"version" : "3.75",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Support for Amazon Q Builder ID paid tier"
7+
} ]
8+
}

.changes/3.76.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"date" : "2025-06-12",
3+
"version" : "3.76",
4+
"entries" : [ {
5+
"type" : "feature",
6+
"description" : "Add MCP support for Amazon Q chat"
7+
} ]
8+
}

.changes/next-release/feature-6de3f384-aa3b-47fe-b895-d41ef23ed6da.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# _3.76_ (2025-06-12)
2+
- **(Feature)** Add MCP support for Amazon Q chat
3+
4+
# _3.75_ (2025-06-11)
5+
- **(Feature)** Support for Amazon Q Builder ID paid tier
6+
17
# _3.74_ (2025-06-05)
28
- **(Feature)** Agentic coding experience: Amazon Q can now write code and run shell commands on your behalf
39
- **(Bug Fix)** Support full Unicode range in inline chat panel on Windows

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Toolkit Version
5-
toolkitVersion=3.75-SNAPSHOT
5+
toolkitVersion=3.77-SNAPSHOT
66

77
# Publish Settings
88
publishToken=

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import javax.net.ssl.SSLHandshakeException
7373

7474
const val MAX_ZIP_SIZE = 2000000000 // 2GB
7575
const val EXPLAINABILITY_V1 = "EXPLAINABILITY_V1"
76+
const val SELECTIVE_TRANSFORMATION_V2 = "SELECTIVE_TRANSFORMATION_V2"
7677

7778
// constants for handling SDKClientException
7879
const val CONNECTION_REFUSED_ERROR: String = "Connection refused"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ fun buildTransformResumingChatContent() = CodeTransformChatMessageContent(
554554
type = CodeTransformChatMessageType.PendingAnswer,
555555
)
556556

557-
fun buildTransformResultChatContent(result: CodeModernizerJobCompletedResult): CodeTransformChatMessageContent {
557+
fun buildTransformResultChatContent(result: CodeModernizerJobCompletedResult, targetJdkVersion: String = ""): CodeTransformChatMessageContent {
558558
val resultMessage = when (result) {
559559
is CodeModernizerJobCompletedResult.JobAbortedZipTooLarge -> {
560560
"${message(
@@ -568,7 +568,7 @@ fun buildTransformResultChatContent(result: CodeModernizerJobCompletedResult): C
568568
buildZipUploadFailedChatMessage(result.failureReason)
569569
}
570570
is CodeModernizerJobCompletedResult.JobCompletedSuccessfully -> {
571-
message("codemodernizer.chat.message.result.success")
571+
message("codemodernizer.chat.message.result.success", targetJdkVersion)
572572
}
573573
is CodeModernizerJobCompletedResult.JobPartiallySucceeded -> {
574574
message("codemodernizer.chat.message.result.partially_success")

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import software.aws.toolkits.jetbrains.services.codemodernizer.CodeTransformTele
3131
import software.aws.toolkits.jetbrains.services.codemodernizer.EXPLAINABILITY_V1
3232
import software.aws.toolkits.jetbrains.services.codemodernizer.HilTelemetryMetaData
3333
import software.aws.toolkits.jetbrains.services.codemodernizer.InboundAppMessagesHandler
34+
import software.aws.toolkits.jetbrains.services.codemodernizer.SELECTIVE_TRANSFORMATION_V2
3435
import software.aws.toolkits.jetbrains.services.codemodernizer.client.GumbyClient
3536
import software.aws.toolkits.jetbrains.services.codemodernizer.commands.CodeTransformActionMessage
3637
import software.aws.toolkits.jetbrains.services.codemodernizer.commands.CodeTransformCommand
@@ -412,7 +413,7 @@ class CodeTransformChatController(
412413
it.sessionContext.customBuildCommand = customBuildCommand
413414
}
414415
// TODO: add CLIENT_SIDE_BUILD below when releasing CSB
415-
val transformCapabilities = listOf(EXPLAINABILITY_V1)
416+
val transformCapabilities = listOf(EXPLAINABILITY_V1, SELECTIVE_TRANSFORMATION_V2)
416417
codeModernizerManager.codeTransformationSession?.let {
417418
it.sessionContext.transformCapabilities = transformCapabilities
418419
codeModernizerManager.runLocalMavenBuild(context.project, it)
@@ -473,7 +474,7 @@ dependencyManagement:
473474
- identifier: "com.example:library1"
474475
targetVersion: "2.1.0"
475476
versionProperty: "library1.version" # Optional
476-
originType: "FIRST_PARTY" # or "THIRD_PARTY" # Optional
477+
originType: "FIRST_PARTY" # or "THIRD_PARTY"
477478
- identifier: "com.example:library2"
478479
targetVersion: "3.0.0"
479480
originType: "THIRD_PARTY"
@@ -794,7 +795,10 @@ dependencyManagement:
794795
is DownloadArtifactResult.Success -> {
795796
if (downloadResult.artifact !is CodeModernizerArtifact) return artifactHandler.notifyUnableToApplyPatch("")
796797
codeTransformChatHelper.updateLastPendingMessage(
797-
buildTransformResultChatContent(result)
798+
buildTransformResultChatContent(
799+
result,
800+
codeModernizerManager.codeTransformationSession?.sessionContext?.targetJavaVersion.toString()
801+
)
798802
)
799803
}
800804
is DownloadArtifactResult.DownloadFailure -> artifactHandler.notifyUnableToDownload(downloadResult.failureReason)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const val CUSTOM_DEPENDENCY_VERSIONS_FILE_PATH = "custom-upgrades.yaml"
4949
const val UPLOAD_ZIP_MANIFEST_VERSION = "1.0"
5050
const val HIL_1P_UPGRADE_CAPABILITY = "HIL_1pDependency_VersionUpgrade"
5151
const val EXPLAINABILITY_V1 = "EXPLAINABILITY_V1"
52+
const val SELECTIVE_TRANSFORMATION_V2 = "SELECTIVE_TRANSFORMATION_V2"
5253
const val CLIENT_SIDE_BUILD = "CLIENT_SIDE_BUILD"
5354
const val MAVEN_CONFIGURATION_FILE_NAME = "pom.xml"
5455
const val MAVEN_BUILD_RUN_UNIT_TESTS = "clean test"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ data class ZipManifest(
1111
val version: String = UPLOAD_ZIP_MANIFEST_VERSION,
1212
val hilCapabilities: List<String> = listOf(HIL_1P_UPGRADE_CAPABILITY),
1313
// TODO: add CLIENT_SIDE_BUILD to transformCapabilities when releasing CSB
14-
// TODO: add AGENTIC_PLAN_V1 or something here AND in processCodeTransformSkipTests when backend allowlists everyone
15-
val transformCapabilities: List<String> = listOf(EXPLAINABILITY_V1),
14+
val transformCapabilities: List<String> = listOf(EXPLAINABILITY_V1, SELECTIVE_TRANSFORMATION_V2),
15+
val noInteractiveMode: Boolean = true,
1616
val customBuildCommand: String = MAVEN_BUILD_RUN_UNIT_TESTS,
1717
val requestedConversions: RequestedConversions? = null, // only used for SQL conversions for now
1818
)

0 commit comments

Comments
 (0)