Skip to content

Commit 292e35e

Browse files
authored
Merge feature/postreinvent
2 parents 73d6dd6 + d3abef0 commit 292e35e

File tree

106 files changed

+657
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+657
-254
lines changed

.eslintrc.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
mocha: true,
1313
es2024: true,
1414
},
15-
plugins: ['@typescript-eslint', 'unicorn', 'header', 'security-node', 'aws-toolkits'],
15+
plugins: ['@typescript-eslint', '@stylistic', 'unicorn', 'header', 'security-node', 'aws-toolkits'],
1616
extends: [
1717
'eslint:recommended',
1818
'plugin:@typescript-eslint/eslint-recommended',
@@ -113,6 +113,20 @@ module.exports = {
113113
'no-constant-condition': ['error', { checkLoops: false }],
114114
'no-empty': 'off',
115115

116+
// https://eslint.style/rules/default/spaced-comment
117+
// Require space after // comment.
118+
'@stylistic/spaced-comment': [
119+
'error',
120+
'always',
121+
{
122+
block: {
123+
markers: ['!'], // Allow the /*!…*/ license header.
124+
// exceptions: ['*'],
125+
// balanced: true
126+
},
127+
},
128+
],
129+
116130
// Rules from https://github.com/sindresorhus/eslint-plugin-unicorn
117131
// TODO: 'unicorn/no-useless-promise-resolve-reject': 'error',
118132
// TODO: 'unicorn/prefer-at': 'error',

buildspec/shared/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# - "waiting for browser": from `ssoAccessTokenProvider.test.ts`, unclear how to fix it.
99
# - "HTTPError: Response code …": caused by github rate-limiting.
1010
# - "npm WARN deprecated querystring": transitive dep of aws sdk v2 (check `npm ls querystring`), so that's blocked until we migrate to v3.
11-
_ignore_pat='Timed-out waiting for browser login flow\|HTTPError: Response code 403\|HTTPError: Response code 404\|npm WARN deprecated querystring\|npm WARN deprecated'
11+
_ignore_pat='HTTPError: Response code 403\|HTTPError: Response code 404\|npm WARN deprecated querystring\|npm WARN deprecated'
1212

1313
# Do not print (noisy) lines matching these patterns.
1414
# - "ERROR:bus… Failed to connect to the bus": noise related to "xvfb". https://github.com/cypress-io/cypress/issues/19299

docs/arch_features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ For EC2 specifically, there are a few additional steps:
4343

4444
1. If connecting to EC2 instance via remote window, the toolkit generates temporary SSH keys (30 second lifetime), with the public key sent to the remote instance.
4545
- Key type is ed25519 if supported, or RSA otherwise.
46+
- This connection will overwrite the `.ssh/authorized_keys` file on the remote machine with each connection.
4647
1. If insufficient permissions are detected on the attached IAM role, toolkit will prompt to add an inline policy with the necessary actions.
4748
1. If SSM sessions remain open after closing the window/terminal, the toolkit will terminate them on-shutdown, or when starting another session to the same instance.
4849

package-lock.json

Lines changed: 216 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"devDependencies": {
4242
"@aws-toolkits/telemetry": "^1.0.284",
4343
"@playwright/browser-chromium": "^1.43.1",
44+
"@stylistic/eslint-plugin": "^2.11.0",
4445
"@types/he": "^1.2.3",
4546
"@types/vscode": "^1.68.0",
4647
"@types/vscode-webview": "^1.57.1",
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Q feature dev: recognize .bms, .pli code 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": "Amazon Q: Simplify log channel"
4+
}

packages/amazonq/src/app/amazonqScan/chat/controller/messenger/messengerUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*
55
*/
6-
//TODO: Refactor the common functionality between Transform, FeatureDev, CWSPRChat, Scan and UTG to a new Folder.
6+
// TODO: Refactor the common functionality between Transform, FeatureDev, CWSPRChat, Scan and UTG to a new Folder.
77

88
export default class MessengerUtils {
99
static stringToEnumValue = <T extends { [key: string]: string }, K extends keyof T & string>(

packages/amazonq/src/extension.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
5353
errors.init(fs.getUsername(), env.isAutomation())
5454
await initializeComputeRegion()
5555

56-
globals.contextPrefix = 'amazonq.' //todo: disconnect from above line
56+
globals.contextPrefix = 'amazonq.' // todo: disconnect from above line
5757

5858
// Avoid activation if older toolkit is installed
5959
// Amazon Q is only compatible with AWS Toolkit >= 3.0.0
@@ -97,10 +97,8 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
9797
globals.manifestPaths.endpoints = context.asAbsolutePath(join('resources', 'endpoints.json'))
9898
globals.regionProvider = RegionProvider.fromEndpointsProvider(makeEndpointsProvider())
9999

100-
const qOutputChannel = vscode.window.createOutputChannel('Amazon Q', { log: true })
101100
const qLogChannel = vscode.window.createOutputChannel('Amazon Q Logs', { log: true })
102-
await activateLogger(context, amazonQContextPrefix, qOutputChannel, qLogChannel)
103-
globals.outputChannel = qOutputChannel
101+
await activateLogger(context, amazonQContextPrefix, qLogChannel)
104102
globals.logOutputChannel = qLogChannel
105103
globals.loginManager = new LoginManager(globals.awsContext, new CredentialsStore())
106104

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,13 +517,13 @@
517517
"@vscode/debugprotocol": "^1.57.0",
518518
"@zip.js/zip.js": "^2.7.41",
519519
"adm-zip": "^0.5.10",
520-
"amazon-states-language-service": "^1.11.0",
520+
"amazon-states-language-service": "^1.13.0",
521521
"async-lock": "^1.4.0",
522522
"aws-sdk": "^2.1384.0",
523523
"aws-ssm-document-language-service": "^1.0.0",
524524
"bytes": "^3.1.2",
525525
"cross-fetch": "^4.0.0",
526-
"cross-spawn": "^7.0.3",
526+
"cross-spawn": "^7.0.5",
527527
"diff": "^5.1.0",
528528
"fast-json-patch": "^3.1.1",
529529
"glob": "^10.3.10",

0 commit comments

Comments
 (0)