Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
591dc9a
fix(amazon q): add pl/1, bms filetypes #6067
scottwritescode Dec 2, 2024
d4b0ede
test(codewhisperer): disable Auto Scan after test case #6122
roger-zhangg Dec 2, 2024
fec09f5
Merge master into feature/postreinvent
aws-toolkit-automation Dec 3, 2024
cd0847d
Merge master into feature/postreinvent
aws-toolkit-automation Dec 3, 2024
09425b6
Merge master into feature/postreinvent
aws-toolkit-automation Dec 3, 2024
d453a15
Merge master into feature/postreinvent
aws-toolkit-automation Dec 3, 2024
be4b42b
Merge master into feature/postreinvent
aws-toolkit-automation Dec 3, 2024
6d5e016
refactor(logs): drop "Amazon Q Logs" channel and just have "Amazon Q"…
nkomonen-amazon Dec 3, 2024
50ccef5
Merge master into feature/postreinvent
aws-toolkit-automation Dec 3, 2024
0419e0f
Merge master into feature/postreinvent
aws-toolkit-automation Dec 4, 2024
59acbc6
feat(toolkit): Upgrade amazon-states-language-service to 1.13.0 #6139
elvin-hwang Dec 4, 2024
c7597ea
Merge master into feature/postreinvent
aws-toolkit-automation Dec 4, 2024
3d72353
Merge master into feature/postreinvent
aws-toolkit-automation Dec 4, 2024
c30cf3a
Merge master into feature/postreinvent
aws-toolkit-automation Dec 4, 2024
346a06e
Merge master into feature/postreinvent
aws-toolkit-automation Dec 4, 2024
2905eb8
deps(cross-spawn): update cross-spawn to 7.0.5 #6147
Hweinstock Dec 4, 2024
c8bfe2f
test(flaky): fix unresolved promise causing linux failures (#6088)
Hweinstock Dec 4, 2024
7fe8a25
Merge master into feature/postreinvent
aws-toolkit-automation Dec 4, 2024
e46500e
fix(logs): avoid logging EC2 ARN on commands #6152
Hweinstock Dec 4, 2024
4c38aab
feat(ec2): dry run connection script to surface errors earlier. (#6037)
Hweinstock Dec 5, 2024
95b777c
ci: require space at start of // comment #6112
justinmk3 Dec 5, 2024
7f90d56
refactor(ec2): avoid logging somewhat sensitive data (#6149)
Hweinstock Dec 5, 2024
24b1585
Merge master into feature/postreinvent
aws-toolkit-automation Dec 5, 2024
83aac85
fix(amazonq): prompt to choose a folder for /doc #6159
avi-alpert Dec 5, 2024
6de9de2
Merge master into feature/postreinvent
aws-toolkit-automation Dec 5, 2024
1c337a6
Merge master into feature/postreinvent
aws-toolkit-automation Dec 6, 2024
11c35ae
docs(ec2): add details about `authorized_keys`override (#6157)
Hweinstock Dec 6, 2024
3f2ee9e
refactor(ec2): pass log level to connect script (#6161)
Hweinstock Dec 6, 2024
1ed440a
Merge master into feature/postreinvent
aws-toolkit-automation Dec 6, 2024
58e6bbf
Merge master into feature/postreinvent
aws-toolkit-automation Dec 6, 2024
a954f49
Merge master into feature/postreinvent
aws-toolkit-automation Dec 6, 2024
d3abef0
Merge master into feature/postreinvent
aws-toolkit-automation Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
mocha: true,
es2024: true,
},
plugins: ['@typescript-eslint', 'unicorn', 'header', 'security-node', 'aws-toolkits'],
plugins: ['@typescript-eslint', '@stylistic', 'unicorn', 'header', 'security-node', 'aws-toolkits'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
Expand Down Expand Up @@ -113,6 +113,20 @@ module.exports = {
'no-constant-condition': ['error', { checkLoops: false }],
'no-empty': 'off',

// https://eslint.style/rules/default/spaced-comment
// Require space after // comment.
'@stylistic/spaced-comment': [
'error',
'always',
{
block: {
markers: ['!'], // Allow the /*!…*/ license header.
// exceptions: ['*'],
// balanced: true
},
},
],

// Rules from https://github.com/sindresorhus/eslint-plugin-unicorn
// TODO: 'unicorn/no-useless-promise-resolve-reject': 'error',
// TODO: 'unicorn/prefer-at': 'error',
Expand Down
2 changes: 1 addition & 1 deletion buildspec/shared/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# - "waiting for browser": from `ssoAccessTokenProvider.test.ts`, unclear how to fix it.
# - "HTTPError: Response code …": caused by github rate-limiting.
# - "npm WARN deprecated querystring": transitive dep of aws sdk v2 (check `npm ls querystring`), so that's blocked until we migrate to v3.
_ignore_pat='Timed-out waiting for browser login flow\|HTTPError: Response code 403\|HTTPError: Response code 404\|npm WARN deprecated querystring\|npm WARN deprecated'
_ignore_pat='HTTPError: Response code 403\|HTTPError: Response code 404\|npm WARN deprecated querystring\|npm WARN deprecated'

# Do not print (noisy) lines matching these patterns.
# - "ERROR:bus… Failed to connect to the bus": noise related to "xvfb". https://github.com/cypress-io/cypress/issues/19299
Expand Down
1 change: 1 addition & 0 deletions docs/arch_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ For EC2 specifically, there are a few additional steps:

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.
- Key type is ed25519 if supported, or RSA otherwise.
- This connection will overwrite the `.ssh/authorized_keys` file on the remote machine with each connection.
1. If insufficient permissions are detected on the attached IAM role, toolkit will prompt to add an inline policy with the necessary actions.
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.

Expand Down
221 changes: 216 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"devDependencies": {
"@aws-toolkits/telemetry": "^1.0.284",
"@playwright/browser-chromium": "^1.43.1",
"@stylistic/eslint-plugin": "^2.11.0",
"@types/he": "^1.2.3",
"@types/vscode": "^1.68.0",
"@types/vscode-webview": "^1.57.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "Q feature dev: recognize .bms, .pli code files"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Feature",
"description": "Amazon Q: Simplify log channel"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*
*/
//TODO: Refactor the common functionality between Transform, FeatureDev, CWSPRChat, Scan and UTG to a new Folder.
// TODO: Refactor the common functionality between Transform, FeatureDev, CWSPRChat, Scan and UTG to a new Folder.

export default class MessengerUtils {
static stringToEnumValue = <T extends { [key: string]: string }, K extends keyof T & string>(
Expand Down
6 changes: 2 additions & 4 deletions packages/amazonq/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
errors.init(fs.getUsername(), env.isAutomation())
await initializeComputeRegion()

globals.contextPrefix = 'amazonq.' //todo: disconnect from above line
globals.contextPrefix = 'amazonq.' // todo: disconnect from above line

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

const qOutputChannel = vscode.window.createOutputChannel('Amazon Q', { log: true })
const qLogChannel = vscode.window.createOutputChannel('Amazon Q Logs', { log: true })
await activateLogger(context, amazonQContextPrefix, qOutputChannel, qLogChannel)
globals.outputChannel = qOutputChannel
await activateLogger(context, amazonQContextPrefix, qLogChannel)
globals.logOutputChannel = qLogChannel
globals.loginManager = new LoginManager(globals.awsContext, new CredentialsStore())

Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,13 @@
"@vscode/debugprotocol": "^1.57.0",
"@zip.js/zip.js": "^2.7.41",
"adm-zip": "^0.5.10",
"amazon-states-language-service": "^1.11.0",
"amazon-states-language-service": "^1.13.0",
"async-lock": "^1.4.0",
"aws-sdk": "^2.1384.0",
"aws-ssm-document-language-service": "^1.0.0",
"bytes": "^3.1.2",
"cross-fetch": "^4.0.0",
"cross-spawn": "^7.0.3",
"cross-spawn": "^7.0.5",
"diff": "^5.1.0",
"fast-json-patch": "^3.1.1",
"glob": "^10.3.10",
Expand Down
Loading
Loading