You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(q-dev): /dev can be configured to run code, tests #6453
## Problem
Customers cannot configure whether their generated code should be
run and tested for quality assurance before being provided to them.
## Solution
Enable customers to configure whether to run code and
tests with /dev per project. On the first run of /dev for a project, if
a devfile.yaml exists in the root of the project, the customer is
prompted to know if they want to use the commands in the file to test
the code we generate. The feature additionally allows customers to
generate a devfile if one doesn't exist. Their choice is persisted and
configurable in the Amazon Q settings.
Co-authored-by: wilson <[email protected]>
Co-authored-by: Justin M. Keyes <[email protected]>
Co-authored-by: Karan Ahluwalia <[email protected]>
Co-authored-by: Hamed Soleimani <[email protected]>
Co-authored-by: Josh Pinkney <[email protected]>
Copy file name to clipboardExpand all lines: packages/core/package.nls.json
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
"AWS.configuration.description.suppressPrompts": "Prompts which ask for confirmation. Checking an item suppresses the prompt.",
21
21
"AWS.configuration.enableCodeLenses": "Enable SAM hints in source code and template.yaml files",
22
22
"AWS.configuration.description.resources.enabledResources": "AWS resources to display in the 'Resources' portion of the explorer.",
23
+
"AWS.configuration.description.featureDevelopment.allowRunningCodeAndTests": "Allow /dev to run code and test commands",
23
24
"AWS.configuration.description.experiments": "Try experimental features and give feedback. Note that experimental features may be removed at any time.\n * `jsonResourceModification` - Enables basic create, update, and delete support for cloud resources via the JSON Resources explorer component.",
24
25
"AWS.stepFunctions.asl.format.enable.desc": "Enables the default formatter used with Amazon States Language files",
25
26
"AWS.stepFunctions.asl.maxItemsComputed.desc": "The maximum number of outline symbols and folding regions computed (limited for performance reasons).",
@@ -362,12 +363,18 @@
362
363
"AWS.amazonq.featureDev.pillText.selectOption": "Choose an option to proceed",
363
364
"AWS.amazonq.featureDev.pillText.unableGenerateChanges": "Unable to generate any file changes",
"AWS.amazonq.featureDev.answer.generateSuggestion": "Would you like to generate a suggestion for this? You'll review a file diff before inserting into your project.",
366
+
"AWS.amazonq.featureDev.pillText.generateDevFile": "Generate devfile to build code",
367
+
"AWS.amazonq.featureDev.pillText.acceptForProject": "Yes, use my devfile for this project",
"AWS.amazonq.featureDev.answer.generateSuggestion": "Would you like to generate a suggestion for this? You’ll review a file diff before inserting into your project.",
366
370
"AWS.amazonq.featureDev.answer.qGeneratedCode": "The Amazon Q Developer Agent for software development has generated code for you to review",
367
371
"AWS.amazonq.featureDev.answer.howCodeCanBeImproved": "How can I improve the code for your use case?",
368
372
"AWS.amazonq.featureDev.answer.updateCode": "Okay, I updated your code files. Would you like to work on another task?",
369
373
"AWS.amazonq.featureDev.answer.sessionClosed": "Okay, I've ended this chat session. You can open a new tab to chat or start another workflow.",
370
374
"AWS.amazonq.featureDev.answer.newTaskChanges": "What new task would you like to work on?",
375
+
"AWS.amazonq.featureDev.answer.devFileSuggestion": "For future tasks in this project, I can create a devfile to build and test code as I generate it. This can improve the quality of generated code. To allow me to create a devfile, choose **Generate devfile to build code**.",
376
+
"AWS.amazonq.featureDev.answer.settingUpdated": "I've updated your settings so I can run code and test commands based on your devfile for this project. You can update this setting under **Amazon Q: Allow Q /dev to run code and test commands**.",
377
+
"AWS.amazonq.featureDev.answer.devFileInRepository": "I noticed that your repository has a `devfile.yaml`. Would you like me to use the devfile to build and test your project as I generate code? \n\nFor more information on using devfiles to improve code generation, see the <a href=\"https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/software-dev.html\" target=\"_blank\">Amazon Q Developer documentation</a>.",
371
378
"AWS.amazonq.featureDev.placeholder.chatInputDisabled": "Chat input is disabled",
372
379
"AWS.amazonq.featureDev.placeholder.additionalImprovements": "Describe your task or issue in detail",
373
380
"AWS.amazonq.featureDev.placeholder.feedback": "Provide feedback or comments",
exportconstfeatureName='Amazon Q Developer Agent for software development'
16
16
17
+
exportconstgenerateDevFilePrompt=
18
+
"generate a devfile in my repository. Note that you should only use devfile version 2.0.0 and the only supported commands are install, build and test (are all optional). so you may have to bundle some commands together using '&&'. also you can use ”public.ecr.aws/aws-mde/universal-image:latest” as universal image if you aren’t sure which image to use. here is an example for a node repository (but don't assume it's always a node project. look at the existing repository structure before generating the devfile): schemaVersion: 2.0.0 components: - name: dev container: image: public.ecr.aws/aws-mde/universal-image:latest commands: - id: install exec: component: dev commandLine: ”npm install” - id: build exec: component: dev commandLine: ”npm run build” - id: test exec: component: dev commandLine: ”npm run test”"
0 commit comments