Skip to content

Commit 2de568d

Browse files
authored
Merge branch 'aws:master' into output-terminal
2 parents 84c0e18 + 61d67f8 commit 2de568d

File tree

14 files changed

+88
-27
lines changed

14 files changed

+88
-27
lines changed

buildspec/release/35opengate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 0.2
2+
3+
phases:
4+
install:
5+
runtime-versions:
6+
nodejs: 16
7+
8+
pre_build:
9+
commands:
10+
- STAGE_NAME=SourceWithGit
11+
- PIPELINE=$(echo $CODEBUILD_INITIATOR | sed -e 's/codepipeline\///')
12+
build:
13+
commands:
14+
- |
15+
aws codepipeline enable-stage-transition \
16+
--pipeline-name "$PIPELINE" \
17+
--stage-name "$STAGE_NAME" \
18+
--transition-type "Inbound"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Amazon Q /dev: support `Dockerfile` files"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Introduce @workspace command to enhance context fetching for Chat"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Feature(Amazon Q Code Transformation): allow users to view results in 5 smaller diffs"
4+
}

packages/core/package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"AWS.configuration.description.amazonq": "Amazon Q creates a code reference when you insert a code suggestion from Amazon Q that is similar to training data. When unchecked, Amazon Q will not show code suggestions that have code references. If you authenticate through IAM Identity Center, this setting is controlled by your Amazon Q administrator. [Learn More](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/code-reference.html)",
7575
"AWS.configuration.description.amazonq.shareContentWithAWS": "When checked, your content processed by Amazon Q may be used for service improvement (except for content processed for users with the Amazon Q Developer Pro Tier). Unchecking this box will cause AWS to delete any of your content used for that purpose. The information used to provide the Amazon Q service to you will not be affected. See the [Service Terms](https://aws.amazon.com/service-terms) for more details.",
7676
"AWS.configuration.description.amazonq.importRecommendation": "Amazon Q will add import statements with inline code suggestions when necessary.",
77-
"AWS.configuration.description.amazonq.workspaceIndex": "This feature is in BETA. When you add @workspace to your question in Amazon Q chat, Amazon Q will index your open workspace files locally to use as context for its response. Extra CPU usage is expected while indexing a workspace. This will not impact Amazon Q features or your IDE, but you may manage CPU usage by setting the number of local threads in 'Local Workspace Index Threads'.",
77+
"AWS.configuration.description.amazonq.workspaceIndex": "When you add @workspace to your question in Amazon Q chat, Amazon Q will index your open workspace files locally to use as context for its response. Extra CPU usage is expected while indexing a workspace. This will not impact Amazon Q features or your IDE, but you may manage CPU usage by setting the number of local threads in 'Local Workspace Index Threads'.",
7878
"AWS.configuration.description.amazonq.workspaceIndexWorkerThreads": "Number of worker threads of Amazon Q local index process. '0' will use the system default worker threads for balance performance. You may increase this number to more quickly index your workspace, but only up to your hardware's number of CPU cores. Please restart VS Code or reload the VS Code window after changing worker threads.",
7979
"AWS.configuration.description.amazonq.workspaceIndexUseGPU": "Enable GPU to help index your local workspace files. Only applies to Linux and Windows.",
8080
"AWS.configuration.description.amazonq.workspaceIndexMaxSize": "The maximum size of local workspace files to be indexed in MB",

packages/core/src/amazonq/webview/ui/tabs/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const workspaceCommand: QuickActionCommandGroup = {
1717
commands: [
1818
{
1919
command: '@workspace',
20-
description: '(BETA) Reference all code in workspace.',
20+
description: 'Reference all code in workspace.',
2121
},
2222
],
2323
}

packages/core/src/amazonqGumby/chat/controller/controller.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ import { getStringHash } from '../../../shared/utilities/textUtilities'
6262
import { getVersionData } from '../../../codewhisperer/service/transformByQ/transformMavenHandler'
6363
import AdmZip from 'adm-zip'
6464
import { AuthError } from '../../../auth/sso/server'
65-
import { isSelectiveTransformationReady } from '../../../dev/config'
6665

6766
// These events can be interactions within the chat,
6867
// or elsewhere in the IDE
@@ -424,18 +423,15 @@ export class GumbyController {
424423
result: MetadataResult.Pass,
425424
})
426425
this.messenger.sendSkipTestsSelectionMessage(skipTestsSelection, message.tabID)
427-
if (!isSelectiveTransformationReady) {
428-
// perform local build
429-
await this.validateBuildWithPromptOnError(message)
430-
} else {
431-
await this.messenger.sendOneOrMultipleDiffsPrompt(message.tabID)
432-
}
426+
await this.messenger.sendOneOrMultipleDiffsPrompt(message.tabID)
433427
}
434428

435429
private async handleOneOrMultipleDiffs(message: any) {
436430
const oneOrMultipleDiffsSelection = message.formSelectedValues['GumbyTransformOneOrMultipleDiffsForm']
437431
if (oneOrMultipleDiffsSelection === CodeWhispererConstants.multipleDiffsMessage) {
438432
transformByQState.setMultipleDiffs(true)
433+
} else {
434+
transformByQState.setMultipleDiffs(false)
439435
}
440436
this.messenger.sendOneOrMultipleDiffsMessage(oneOrMultipleDiffsSelection, message.tabID)
441437
// perform local build

packages/core/src/amazonqGumby/chat/controller/messenger/messenger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export class Messenger {
603603
}
604604

605605
public sendOneOrMultipleDiffsMessage(selectiveTransformationSelection: string, tabID: string) {
606-
const message = `Okay, I will create ${selectiveTransformationSelection.toLowerCase()} when providing the proposed changes.`
606+
const message = `Okay, I will create ${selectiveTransformationSelection.toLowerCase()} with my proposed changes.`
607607
this.dispatcher.sendChatMessage(new ChatMessage({ message, messageType: 'ai-prompt' }, tabID))
608608
}
609609

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const patchDescriptions: { [key: string]: string } = {
2828
'Popular Enterprise Specifications and Application Frameworks upgrade':
2929
'This diff patch covers the set of upgrades for Jakarta EE 10, Hibernate 6.2, and Micronaut 3.',
3030
'HTTP Client Utilities, Apache Commons Utilities, and Web Frameworks':
31-
'This diff patch covers the set of upgrades for Apache HTTP Client 5, Apache Commons utilities (Collections, IO, Lang, Math), Struts 6.0.',
31+
'This diff patch covers the set of upgrades for Apache HTTP Client 5, Apache Commons utilities (Collections, IO, Lang, Math), and Struts 6.0.',
3232
'Testing Tools and Frameworks upgrade':
33-
'This diff patch covers the set of upgrades for ArchUnit, Mockito, TestContainers, Cucumber, and additionally, Jenkins plugins and the Maven Wrapper.',
33+
'This diff patch covers the set of upgrades for ArchUnit, Mockito, TestContainers, and Cucumber, in addition to the Jenkins plugins and the Maven Wrapper.',
3434
'Miscellaneous Processing Documentation upgrade':
3535
'This diff patch covers a diverse set of upgrades spanning ORMs, XML processing, API documentation, and more.',
3636
'Deprecated API replacement, dependency upgrades, and formatting':
@@ -470,7 +470,7 @@ export const chooseTransformationObjective = `I can help you with the following
470470
export const chooseTransformationObjectivePlaceholder = 'Enter "language upgrade" or "sql conversion"'
471471

472472
export const userPatchDescriptionChatMessage = `
473-
I can now divide the transformation results into diff patches (if applicable to the app) if you would like to review and accept each diff with fewer changes:
473+
If you'd like to update and test your code with fewer changes at a time, I can divide the transformation results into separate diff patches. If applicable to your application, I can split up the diffs up into the following groups of upgrades. Here are the upgrades included in each diff:
474474
475475
• Minimal Compatible Library Upgrade to Java 17: Dependencies to the minimum compatible versions in Java 17, including Springboot, JUnit, and PowerMockito.
476476
@@ -616,16 +616,16 @@ export const jobCancelledNotification = 'You cancelled the transformation.'
616616

617617
export const diffMessage = (multipleDiffs: boolean) => {
618618
return multipleDiffs
619-
? 'You can review the diff to see my proposed changes and accept or reject them. If you reject the diff, you will not be able to see the diffs later.'
619+
? 'You can review the diffs to see my proposed changes and accept or reject them. You will be able to accept changes from one diff at a time. If you reject changes in one diff, you will not be able to view or accept changes in the other diffs.'
620620
: 'You can review the diff to see my proposed changes and accept or reject them.'
621621
}
622622

623623
export const jobCompletedChatMessage = (multipleDiffsString: string) => {
624-
return `I transformed your code. ${multipleDiffsString} The transformation summary has details about the files I updated.`
624+
return `I completed your transformation. ${multipleDiffsString} The transformation summary has details about the changes I'm proposing.`
625625
}
626626

627627
export const jobCompletedNotification = (multipleDiffsString: string) => {
628-
return `Amazon Q transformed your code. ${multipleDiffsString} The transformation summary has details about the files I updated.`
628+
return `Amazon Q transformed your code. ${multipleDiffsString} The transformation summary has details about the changes.`
629629
}
630630

631631
export const jobPartiallyCompletedChatMessage = (multipleDiffsString: string) => {

packages/core/src/codewhisperer/models/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ export class TransformByQState {
808808
this.errorLog = ''
809809
this.customBuildCommand = ''
810810
this.intervalId = undefined
811+
this.produceMultipleDiffs = false
811812
}
812813
}
813814

0 commit comments

Comments
 (0)