Skip to content

Commit 36c0f07

Browse files
committed
merge in master
2 parents 9e07c93 + 1205101 commit 36c0f07

File tree

33 files changed

+846
-493
lines changed

33 files changed

+846
-493
lines changed

package-lock.json

Lines changed: 1 addition & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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 Developer: Updated legal disclaimer text"
4+
}

packages/core/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,6 @@
502502
"mime-types": "^2.1.32",
503503
"node-fetch": "^2.7.0",
504504
"portfinder": "^1.0.32",
505-
"proper-lockfile": "^4.1.2",
506-
"ps-list": "^8.1.1",
507505
"semver": "^7.5.4",
508506
"stream-buffers": "^3.0.2",
509507
"strip-ansi": "^5.2.0",

packages/core/package.nls.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
"AWS.command.apig.copyUrl": "Copy URL",
8181
"AWS.command.apig.invokeRemoteRestApi": "Invoke on AWS",
8282
"AWS.command.apig.invokeRemoteRestApi.cn": "Invoke on Amazon",
83-
"AWS.command.applicationComposer.open": "Open with Application Composer",
84-
"AWS.command.applicationComposer.openDialog": "Open Template with Application Composer...",
83+
"AWS.command.applicationComposer.open": "Open with Infrastructure Composer",
84+
"AWS.command.applicationComposer.openDialog": "Open Template with Infrastructure Composer...",
8585
"AWS.command.auth.addConnection": "Add New Connection",
8686
"AWS.command.auth.showConnectionsPage": "Add New Connection",
8787
"AWS.command.auth.switchConnections": "Switch Connections",
@@ -227,7 +227,7 @@
227227
"AWS.lambda.explorerTitle": "Explorer",
228228
"AWS.developerTools.explorerTitle": "Developer Tools",
229229
"AWS.codewhisperer.explorerTitle": "CodeWhisperer",
230-
"AWS.appcomposer.explorerTitle": "Application Composer",
230+
"AWS.appcomposer.explorerTitle": "Infrastructure Composer",
231231
"AWS.cdk.explorerTitle": "CDK",
232232
"AWS.codecatalyst.explorerTitle": "CodeCatalyst",
233233
"AWS.cwl.limit.desc": "Maximum amount of log entries pulled per request from CloudWatch Logs (max 10000)",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class TabDataGenerator {
3030
const tabData: MynahUIDataModel = {
3131
tabTitle: taskName ?? TabTypeDataMap[tabType].title,
3232
promptInputInfo:
33-
'Use of Amazon Q is subject to the [AWS Responsible AI Policy](https://aws.amazon.com/machine-learning/responsible-ai/policy/).',
33+
'Amazon Q Developer uses generative AI. You may need to verify responses. See the [AWS Responsible AI Policy](https://aws.amazon.com/machine-learning/responsible-ai/policy/).',
3434
quickActionCommands: this.quickActionsGenerator.generateForTab(tabType),
3535
promptInputPlaceholder: TabTypeDataMap[tabType].placeholder,
3636
contextCommands: [

packages/core/src/amazonqFeatureDev/client/featureDev.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,17 @@ import { createCodeWhispererChatStreamingClient } from '../../shared/clients/cod
2626
import { getClientId, getOptOutPreference, getOperatingSystem } from '../../shared/telemetry/util'
2727
import { extensionVersion } from '../../shared/vscode/env'
2828

29+
// Re-enable once BE is able to handle retries.
30+
const writeAPIRetryOptions = {
31+
maxRetries: 0,
32+
retryDelayOptions: {
33+
// The default number of milliseconds to use in the exponential backoff
34+
base: 500,
35+
},
36+
}
37+
2938
// Create a client for featureDev proxy client based off of aws sdk v2
30-
export async function createFeatureDevProxyClient(): Promise<FeatureDevProxyClient> {
39+
export async function createFeatureDevProxyClient(options?: Partial<ServiceOptions>): Promise<FeatureDevProxyClient> {
3140
const bearerToken = await AuthUtil.instance.getBearerToken()
3241
const cwsprConfig = getCodewhispererConfig()
3342
return (await globals.sdkClientBuilder.createAwsService(
@@ -37,27 +46,22 @@ export async function createFeatureDevProxyClient(): Promise<FeatureDevProxyClie
3746
region: cwsprConfig.region,
3847
endpoint: cwsprConfig.endpoint,
3948
token: new Token({ token: bearerToken }),
40-
// SETTING TO 0 FOR BETA. RE-ENABLE FOR RE-INVENT
41-
maxRetries: 0,
42-
retryDelayOptions: {
43-
// The default number of milliseconds to use in the exponential backoff
44-
base: 500,
45-
},
49+
...options,
4650
} as ServiceOptions,
4751
undefined
4852
)) as FeatureDevProxyClient
4953
}
5054

5155
export class FeatureDevClient {
52-
public async getClient() {
56+
public async getClient(options?: Partial<ServiceOptions>) {
5357
// Should not be stored for the whole session.
5458
// Client has to be reinitialized for each request so we always have a fresh bearerToken
55-
return await createFeatureDevProxyClient()
59+
return await createFeatureDevProxyClient(options)
5660
}
5761

5862
public async createConversation() {
5963
try {
60-
const client = await this.getClient()
64+
const client = await this.getClient(writeAPIRetryOptions)
6165
getLogger().debug(`Executing createTaskAssistConversation with {}`)
6266
const { conversationId, $response } = await client.createTaskAssistConversation().promise()
6367
getLogger().debug(`${featureName}: Created conversation: %O`, {
@@ -82,7 +86,7 @@ export class FeatureDevClient {
8286

8387
public async createUploadUrl(conversationId: string, contentChecksumSha256: string, contentLength: number) {
8488
try {
85-
const client = await this.getClient()
89+
const client = await this.getClient(writeAPIRetryOptions)
8690
const params = {
8791
uploadContext: {
8892
taskAssistPlanningUploadContext: {
@@ -119,7 +123,7 @@ export class FeatureDevClient {
119123

120124
public async startCodeGeneration(conversationId: string, uploadId: string, message: string) {
121125
try {
122-
const client = await this.getClient()
126+
const client = await this.getClient(writeAPIRetryOptions)
123127
const params = {
124128
conversationState: {
125129
conversationId,

packages/core/src/applicationcomposer/codeLensProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class ApplicationComposerCodeLensProvider implements vscode.CodeLensProvi
3333
}
3434
const resourcesLoc = new vscode.Range(codeLensLine, 0, codeLensLine, 0)
3535
const codeLens = openTemplateInComposerCommand.build().asCodeLens(resourcesLoc, {
36-
title: localize('AWS.applicationComposer.codeLens.title', 'Visualize with Application Composer'),
36+
title: localize('AWS.applicationComposer.codeLens.title', 'Visualize with Infrastructure Composer'),
3737
tooltip: localize(
3838
'AWS.applicationComposer.codeLens.tooltip',
3939
'Visually design and build modern applications quickly'

packages/core/src/applicationcomposer/composerWebview.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ export class ApplicationComposer {
119119
): vscode.WebviewPanel {
120120
const panel = vscode.window.createWebviewPanel(
121121
'applicationComposer',
122-
localize('AWS.applicationComposer.title', '{0} (Application Composer)', path.basename(documentUri.fsPath)),
122+
localize(
123+
'AWS.applicationComposer.title',
124+
'{0} (Infrastructure Composer)',
125+
path.basename(documentUri.fsPath)
126+
),
123127
{
124128
preserveFocus: true,
125129
viewColumn: vscode.ViewColumn.Active,

packages/core/src/applicationcomposer/messageHandlers/openFeedbackMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import { submitFeedback } from '../../feedback/vue/submitFeedback'
77
import { placeholder } from '../../shared/vscode/commands2'
88

99
export function openFeedbackMessageHandler() {
10-
void submitFeedback(placeholder, 'Application Composer')
10+
void submitFeedback(placeholder, 'Infrastructure Composer')
1111
}

packages/core/src/applicationcomposer/webviewManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class ApplicationComposerManager {
116116
void vscode.window.showInformationMessage(
117117
localize(
118118
'AWS.applicationComposer.visualisation.errors.rendering',
119-
'There was an error rendering Application Composer, check logs for details.'
119+
'There was an error rendering Infrastructure Composer, check logs for details.'
120120
)
121121
)
122122
this.logger.error(`${this.name}: Unable to show App Composer webview: ${err}`)

0 commit comments

Comments
 (0)