@aws/lsp-codewhisperer 0.0.63 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/out/client/token/bearer-token-service.json +1 -1
- package/out/language-server/agenticChat/agenticChatController.d.ts +6 -0
- package/out/language-server/agenticChat/agenticChatController.js +137 -12
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/context/additionalContextProvider.d.ts +1 -1
- package/out/language-server/agenticChat/context/additionalContextProvider.js +8 -3
- package/out/language-server/agenticChat/context/additionalContextProvider.js.map +1 -1
- package/out/language-server/agenticChat/qAgenticChatServer.js +5 -1
- package/out/language-server/agenticChat/qAgenticChatServer.js.map +1 -1
- package/out/language-server/agenticChat/tools/executeBash.d.ts +16 -0
- package/out/language-server/agenticChat/tools/executeBash.js +95 -3
- package/out/language-server/agenticChat/tools/executeBash.js.map +1 -1
- package/out/language-server/agenticChat/tools/fsWrite.js +7 -0
- package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReview.d.ts +211 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReview.js +630 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReview.js.map +1 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewConstants.d.ts +34 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewConstants.js +200 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewConstants.js.map +1 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewErrors.d.ts +12 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewErrors.js +32 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewErrors.js.map +1 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewSchemas.d.ts +289 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewSchemas.js +140 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewSchemas.js.map +1 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewTypes.d.ts +58 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewTypes.js +3 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewTypes.js.map +1 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewUtils.d.ts +156 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewUtils.js +363 -0
- package/out/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewUtils.js.map +1 -0
- package/out/language-server/agenticChat/tools/toolServer.d.ts +1 -0
- package/out/language-server/agenticChat/tools/toolServer.js +90 -39
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +3 -3
- package/out/language-server/chat/telemetry/chatTelemetryController.js +13 -3
- package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
- package/out/language-server/configuration/qConfigurationServer.d.ts +1 -0
- package/out/language-server/configuration/qConfigurationServer.js.map +1 -1
- package/out/language-server/inline-completion/codeWhispererServer.js +58 -41
- package/out/language-server/inline-completion/codeWhispererServer.js.map +1 -1
- package/out/language-server/workspaceContext/artifactManager.d.ts +4 -1
- package/out/language-server/workspaceContext/artifactManager.js +16 -1
- package/out/language-server/workspaceContext/artifactManager.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.d.ts +2 -1
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js +9 -6
- package/out/language-server/workspaceContext/dependency/dependencyDiscoverer.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.d.ts +7 -2
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js +20 -7
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandler.js.map +1 -1
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.d.ts +2 -2
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js +4 -4
- package/out/language-server/workspaceContext/dependency/dependencyHandler/LanguageDependencyHandlerFactory.js.map +1 -1
- package/out/language-server/workspaceContext/fileUploadJobManager.js +3 -1
- package/out/language-server/workspaceContext/fileUploadJobManager.js.map +1 -1
- package/out/language-server/workspaceContext/workspaceContextServer.js +32 -19
- package/out/language-server/workspaceContext/workspaceContextServer.js.map +1 -1
- package/out/language-server/workspaceContext/workspaceFolderManager.d.ts +5 -3
- package/out/language-server/workspaceContext/workspaceFolderManager.js +80 -59
- package/out/language-server/workspaceContext/workspaceFolderManager.js.map +1 -1
- package/out/shared/amazonQServiceManager/configurationUtils.js +6 -0
- package/out/shared/amazonQServiceManager/configurationUtils.js.map +1 -1
- package/out/shared/telemetry/telemetryService.d.ts +2 -0
- package/out/shared/telemetry/telemetryService.js +4 -1
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/telemetry/types.d.ts +2 -0
- package/out/shared/telemetry/types.js.map +1 -1
- package/out/shared/testUtils.d.ts +9 -0
- package/out/shared/testUtils.js +12 -1
- package/out/shared/testUtils.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qCodeReview.js","sourceRoot":"","sources":["../../../../../src/language-server/agenticChat/tools/qCodeAnalysis/qCodeReview.ts"],"names":[],"mappings":";AAAA,6CAA6C;;;AAI7C,iEAA6G;AAC7G,yDAAqD;AACrD,6DAAkH;AAClH,mCAAmC;AACnC,iCAAgC;AAChC,6BAA4B;AAC5B,+BAA8B;AAC9B,2BAAyC;AAGzC,2DAA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,CAAC;YACL,CAAC;YAED,wEAAwE;YACxE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;YAC5D,IAAI,IAAA,eAAU,EAAC,QAAQ,CAAC,IAAI,IAAA,aAAQ,EAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;gBACtD,OAAO,QAAQ,CAAA;YACnB,CAAC;QACL,CAAC;QAED,qDAAqD;QACrD,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAA;QACrD,IAAI,IAAA,eAAU,EAAC,iBAAiB,CAAC,IAAI,IAAA,aAAQ,EAAC,iBAAiB,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;YACxE,OAAO,iBAAiB,CAAA;QAC5B,CAAC;QAED,OAAO,IAAI,CAAA;IACf,CAAC;IAED;;;;OAIG;IACK,iBAAiB,CAAC,UAAkB,6BAA6B;QACrE,mCAAgB,CAAC,iBAAiB,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IACrF,CAAC;;AAl2BL,kCAm2BC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Constants related to programming languages and findings for QCodeReview
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Mapping of file extensions to programming languages
|
|
10
|
+
*/
|
|
11
|
+
export declare const EXTENSION_TO_LANGUAGE: Record<string, string>;
|
|
12
|
+
/**
|
|
13
|
+
* Tool name for QCodeReview
|
|
14
|
+
*/
|
|
15
|
+
export declare const Q_CODE_REVIEW_TOOL_NAME = "qCodeReview";
|
|
16
|
+
/**
|
|
17
|
+
* Tool description for QCodeReview
|
|
18
|
+
*/
|
|
19
|
+
export declare const Q_CODE_REVIEW_TOOL_DESCRIPTION: string;
|
|
20
|
+
/**
|
|
21
|
+
* Finding severity levels
|
|
22
|
+
*/
|
|
23
|
+
export declare const FINDING_SEVERITY: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Scope of code review based on customers prompt
|
|
26
|
+
*/
|
|
27
|
+
export declare const FULL_REVIEW = "FULL_REVIEW";
|
|
28
|
+
export declare const CODE_DIFF_REVIEW = "CODE_DIFF_REVIEW";
|
|
29
|
+
export declare const SCOPE_OF_CODE_REVIEW: string[];
|
|
30
|
+
/**
|
|
31
|
+
* Directories to skip during zip creation
|
|
32
|
+
*/
|
|
33
|
+
export declare const SKIP_DIRECTORIES: string[];
|
|
34
|
+
export declare const FINDINGS_MESSAGE_SUFFIX = "_qCodeReviewFindings";
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.FINDINGS_MESSAGE_SUFFIX = exports.SKIP_DIRECTORIES = exports.SCOPE_OF_CODE_REVIEW = exports.CODE_DIFF_REVIEW = exports.FULL_REVIEW = exports.FINDING_SEVERITY = exports.Q_CODE_REVIEW_TOOL_DESCRIPTION = exports.Q_CODE_REVIEW_TOOL_NAME = exports.EXTENSION_TO_LANGUAGE = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Constants related to programming languages and findings for QCodeReview
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Mapping of file extensions to programming languages
|
|
13
|
+
*/
|
|
14
|
+
exports.EXTENSION_TO_LANGUAGE = {
|
|
15
|
+
// Java
|
|
16
|
+
'.java': 'java',
|
|
17
|
+
'.class': 'java',
|
|
18
|
+
'.jar': 'java',
|
|
19
|
+
'.war': 'java',
|
|
20
|
+
'.ear': 'java',
|
|
21
|
+
'.jsp': 'jsp',
|
|
22
|
+
// JavaScript
|
|
23
|
+
'.js': 'javascript',
|
|
24
|
+
'.mjs': 'javascript',
|
|
25
|
+
'.cjs': 'javascript',
|
|
26
|
+
'.jsx': 'javascript',
|
|
27
|
+
// TypeScript
|
|
28
|
+
'.ts': 'typescript',
|
|
29
|
+
'.tsx': 'typescript',
|
|
30
|
+
// C#
|
|
31
|
+
'.cs': 'csharp',
|
|
32
|
+
'.dll': 'dll',
|
|
33
|
+
'.exe': 'exe',
|
|
34
|
+
// Go
|
|
35
|
+
'.go': 'go',
|
|
36
|
+
// Ruby
|
|
37
|
+
'.rb': 'ruby',
|
|
38
|
+
// Scala
|
|
39
|
+
'.scala': 'scala',
|
|
40
|
+
'.sc': 'scala',
|
|
41
|
+
// Python
|
|
42
|
+
'.py': 'python',
|
|
43
|
+
'.ipynb': 'ipynb',
|
|
44
|
+
// PHP
|
|
45
|
+
'.php': 'php',
|
|
46
|
+
// Rust
|
|
47
|
+
'.rs': 'rust',
|
|
48
|
+
// Kotlin
|
|
49
|
+
'.kt': 'kotlin',
|
|
50
|
+
'.kts': 'kotlin',
|
|
51
|
+
// SQL
|
|
52
|
+
'.sql': 'sql',
|
|
53
|
+
// C/C++
|
|
54
|
+
'.c': 'c',
|
|
55
|
+
'.cpp': 'cpp',
|
|
56
|
+
'.cc': 'cpp',
|
|
57
|
+
// Shell
|
|
58
|
+
'.sh': 'shell',
|
|
59
|
+
'.zsh': 'shell',
|
|
60
|
+
'.bash': 'shell',
|
|
61
|
+
// Other languages
|
|
62
|
+
'.css': 'css',
|
|
63
|
+
'.lua': 'lua',
|
|
64
|
+
'.m': 'objective_c',
|
|
65
|
+
'.r': 'r',
|
|
66
|
+
'.swift': 'swift',
|
|
67
|
+
// Config files
|
|
68
|
+
'.config': 'config',
|
|
69
|
+
'.cfg': 'config',
|
|
70
|
+
'.conf': 'config',
|
|
71
|
+
'.cnf': 'config',
|
|
72
|
+
'.cf': 'config',
|
|
73
|
+
'.properties': 'properties',
|
|
74
|
+
'.ini': 'ini',
|
|
75
|
+
'.plist': 'plist',
|
|
76
|
+
'.env': 'env',
|
|
77
|
+
// Data formats
|
|
78
|
+
'.json': 'json',
|
|
79
|
+
'.yml': 'yaml',
|
|
80
|
+
'.yaml': 'yaml',
|
|
81
|
+
'.xml': 'xml',
|
|
82
|
+
'.toml': 'toml',
|
|
83
|
+
// Markup
|
|
84
|
+
'.md': 'markdown',
|
|
85
|
+
'.rst': 'rst',
|
|
86
|
+
'.html': 'html',
|
|
87
|
+
'.txt': 'txt',
|
|
88
|
+
'.text': 'txt',
|
|
89
|
+
// Security
|
|
90
|
+
'.pem': 'pem',
|
|
91
|
+
'.key': 'key',
|
|
92
|
+
// Infrastructure as Code
|
|
93
|
+
'.tf': 'terraform',
|
|
94
|
+
'.hcl': 'terraform',
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Tool name for QCodeReview
|
|
98
|
+
*/
|
|
99
|
+
exports.Q_CODE_REVIEW_TOOL_NAME = 'qCodeReview';
|
|
100
|
+
/**
|
|
101
|
+
* Tool description for QCodeReview
|
|
102
|
+
*/
|
|
103
|
+
exports.Q_CODE_REVIEW_TOOL_DESCRIPTION = [
|
|
104
|
+
'The primary tool for comprehensive code analysis and review. This tool should be used by default whenever a user requests code review, file analysis, or code examination unless explicitly instructed otherwise.',
|
|
105
|
+
'This tool can be used to perform code review of full code or modified code. Modified code refers to the changes made that are not committed yet.',
|
|
106
|
+
'',
|
|
107
|
+
'**Use this tool when customers asks to:**',
|
|
108
|
+
'- "Review this file" or "Review my code" or "Review my changes" or "Review this code" or any other similar prompt to review the code',
|
|
109
|
+
'- "Examine this code" or "Check this code" or "Analyze this file/folder/workspace"',
|
|
110
|
+
'- "Check my implementation" or "Look at my implementation" or "Examine this code"',
|
|
111
|
+
'- "What do you think of this code?" or "Find issues in this code"',
|
|
112
|
+
'- Any general code review or analysis request',
|
|
113
|
+
'',
|
|
114
|
+
'**Comprehensive Analysis Capabilities:**',
|
|
115
|
+
'- SAST scanning — Detect security vulnerabilities in your source code, such as resource leaks, SQL injection, and cross-site scripting',
|
|
116
|
+
'- Secrets detection — Prevent the exposure of sensitive or confidential information in your code',
|
|
117
|
+
'- IaC issues — Evaluate the security posture of your infrastructure files',
|
|
118
|
+
'- Code quality issues — Ensure your code is meeting quality, maintainability, and efficiency standards',
|
|
119
|
+
'- Code deployment risks — Assess risks related to deploying code',
|
|
120
|
+
'- Software composition analysis (SCA) — Evaluate third-party code',
|
|
121
|
+
'',
|
|
122
|
+
'**Supported Programming Languages:**',
|
|
123
|
+
'- Java, Python, JavaScript, TypeScript, C#, CloudFormation, Terraform, Go, Ruby, C, C++, PHP, Rust, Kotlin, Scala, Shell, SQL',
|
|
124
|
+
'',
|
|
125
|
+
'**Supported File Extensions For Review**',
|
|
126
|
+
`- "${Object.keys(exports.EXTENSION_TO_LANGUAGE).join('", "')}"`,
|
|
127
|
+
'',
|
|
128
|
+
'**Tool start message**',
|
|
129
|
+
'Before running the tool, you must inform the user that you will use Amazon Q Code Review tool for their request.',
|
|
130
|
+
'Under no condition you will use the tool without informing the user.',
|
|
131
|
+
'',
|
|
132
|
+
'**Tool Input**',
|
|
133
|
+
'3 main fields in the tool:',
|
|
134
|
+
'- "scopeOfReview": Determines if the review should analyze the entire codebase (FULL_REVIEW) or only focus on changes/modifications (CODE_DIFF_REVIEW). This is a required field.',
|
|
135
|
+
'- IMPORTANT: Use CODE_DIFF_REVIEW when user explicitly asks to review "changes", "modifications", "diff", "uncommitted code", or similar phrases indicating they want to review only what has changed.',
|
|
136
|
+
'- Examples of CODE_DIFF_REVIEW requests: "review my changes", "look at what I modified", "check the uncommitted changes", "review the diff", "review new changes", etc.',
|
|
137
|
+
'- IMPORTANT: When user mentions "new changes" or includes words like "new", "recent", or "latest" along with "changes" or similar terms, this should be interpreted as CODE_DIFF_REVIEW.',
|
|
138
|
+
'- Use FULL_REVIEW for all other review requests.',
|
|
139
|
+
'- "fileLevelArtifacts": Array of specific files to review, each with absolute path. Use this when reviewing individual files, not folders. Format: [{"path": "/absolute/path/to/file.py"}]',
|
|
140
|
+
'- "folderLevelArtifacts": Array of folders to review, each with absolute path. Use this when reviewing entire directories, not individual files. Format: [{"path": "/absolute/path/to/folder/"}]',
|
|
141
|
+
'Few important notes for tool input',
|
|
142
|
+
"- Either fileLevelArtifacts OR folderLevelArtifacts should be provided based on what's being reviewed, but not both for the same items.",
|
|
143
|
+
'- Do not perform code review of entire workspace or project unless user asks for it explicitly.',
|
|
144
|
+
'- Ask user for more clarity if there is any confusion regarding what needs to be scanned.',
|
|
145
|
+
'',
|
|
146
|
+
'**Tool Output**',
|
|
147
|
+
'Tool output will contain a json output containing fields - ',
|
|
148
|
+
'- codeReviewId - internal code review job id ',
|
|
149
|
+
'- status - code review status (Completed, Failed)',
|
|
150
|
+
'- result - if the scan completes successfully, there will be message and findingsByFile',
|
|
151
|
+
' - message - contains information about the scan, can also contain some information that needs to be provided to the user',
|
|
152
|
+
' - findingsByFile - contains findings grouped by impacted file path, do not provide a summary of these findings',
|
|
153
|
+
'- errorMessage - if there is any failure, it will contain cause of failure',
|
|
154
|
+
'',
|
|
155
|
+
'**Format to display output**',
|
|
156
|
+
'The tool will generate some findings grouped by file, but you should NOT provide a summary of it to the user.',
|
|
157
|
+
'UNDER NO CIRCUMSTANCE must you provide ANY summary of the tool output to the user.',
|
|
158
|
+
'Use following format STRICTLY to display the result of this tool for different scenarios:',
|
|
159
|
+
'- When findings are present, you must inform user that you have completed the review of {file name / folder name / workspace} and found several issues that need attention. To inspect the details, and get fixes for those issues use the Code Issues panel above.',
|
|
160
|
+
' - When tool output message tells that findings were limited due to high count, you must inform the user that since there were lots of findings, you have included the top 50 findings only.',
|
|
161
|
+
'- When no findings are generated by the tool, you must tell user that you have completed the review of {file name / folder name / workspace} and found no issues.',
|
|
162
|
+
'- CRITICAL: DO NOT list, enumerate, count, or summarize any findings from the tool output. The user must use the Code Issues panel to view the findings.',
|
|
163
|
+
].join('\n');
|
|
164
|
+
/**
|
|
165
|
+
* Finding severity levels
|
|
166
|
+
*/
|
|
167
|
+
exports.FINDING_SEVERITY = ['Info', 'Low', 'Medium', 'High', 'Critical'];
|
|
168
|
+
/**
|
|
169
|
+
* Scope of code review based on customers prompt
|
|
170
|
+
*/
|
|
171
|
+
exports.FULL_REVIEW = 'FULL_REVIEW';
|
|
172
|
+
exports.CODE_DIFF_REVIEW = 'CODE_DIFF_REVIEW';
|
|
173
|
+
exports.SCOPE_OF_CODE_REVIEW = [exports.FULL_REVIEW, exports.CODE_DIFF_REVIEW];
|
|
174
|
+
/**
|
|
175
|
+
* Directories to skip during zip creation
|
|
176
|
+
*/
|
|
177
|
+
exports.SKIP_DIRECTORIES = [
|
|
178
|
+
'node_modules',
|
|
179
|
+
'dist',
|
|
180
|
+
'build',
|
|
181
|
+
'target',
|
|
182
|
+
'.git',
|
|
183
|
+
'.svn',
|
|
184
|
+
'.hg',
|
|
185
|
+
'.vscode',
|
|
186
|
+
'.idea',
|
|
187
|
+
'.vs',
|
|
188
|
+
'__pycache__',
|
|
189
|
+
'.pytest_cache',
|
|
190
|
+
'venv',
|
|
191
|
+
'env',
|
|
192
|
+
'.env',
|
|
193
|
+
'virtualenv',
|
|
194
|
+
'coverage',
|
|
195
|
+
'.nyc_output',
|
|
196
|
+
'tmp',
|
|
197
|
+
'temp',
|
|
198
|
+
];
|
|
199
|
+
exports.FINDINGS_MESSAGE_SUFFIX = '_qCodeReviewFindings';
|
|
200
|
+
//# sourceMappingURL=qCodeReviewConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qCodeReviewConstants.js","sourceRoot":"","sources":["../../../../../src/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewConstants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AAEH;;GAEG;AACU,QAAA,qBAAqB,GAA2B;IACzD,OAAO;IACP,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yFAAyF;IACzF,4HAA4H;IAC5H,kHAAkH;IAClH,4EAA4E;IAC5E,EAAE;IACF,8BAA8B;IAC9B,+GAA+G;IAC/G,oFAAoF;IACpF,2FAA2F;IAC3F,qQAAqQ;IACrQ,+LAA+L;IAC/L,mKAAmK;IACnK,0JAA0J;CAC7J,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAEZ;;GAEG;AACU,QAAA,gBAAgB,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAA;AAE7E;;GAEG;AACU,QAAA,WAAW,GAAG,aAAa,CAAA;AAC3B,QAAA,gBAAgB,GAAG,kBAAkB,CAAA;AACrC,QAAA,oBAAoB,GAAG,CAAC,mBAAW,EAAE,wBAAgB,CAAC,CAAA;AAEnE;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC5B,cAAc;IACd,MAAM;IACN,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,KAAK;IACL,SAAS;IACT,OAAO;IACP,KAAK;IACL,aAAa;IACb,eAAe;IACf,MAAM;IACN,KAAK;IACL,MAAM;IACN,YAAY;IACZ,UAAU;IACV,aAAa;IACb,KAAK;IACL,MAAM;CACT,CAAA;AAEY,QAAA,uBAAuB,GAAG,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class QCodeReviewError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare class QCodeReviewValidationError extends QCodeReviewError {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
export declare class QCodeReviewTimeoutError extends QCodeReviewError {
|
|
8
|
+
constructor(message: string);
|
|
9
|
+
}
|
|
10
|
+
export declare class QCodeReviewInternalError extends QCodeReviewError {
|
|
11
|
+
constructor(message: string);
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QCodeReviewInternalError = exports.QCodeReviewTimeoutError = exports.QCodeReviewValidationError = exports.QCodeReviewError = void 0;
|
|
4
|
+
class QCodeReviewError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = 'QCodeReviewError';
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.QCodeReviewError = QCodeReviewError;
|
|
11
|
+
class QCodeReviewValidationError extends QCodeReviewError {
|
|
12
|
+
constructor(message) {
|
|
13
|
+
super(message);
|
|
14
|
+
this.name = 'QCodeReviewValidationError';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.QCodeReviewValidationError = QCodeReviewValidationError;
|
|
18
|
+
class QCodeReviewTimeoutError extends QCodeReviewError {
|
|
19
|
+
constructor(message) {
|
|
20
|
+
super(message);
|
|
21
|
+
this.name = 'QCodeReviewTimeoutError';
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.QCodeReviewTimeoutError = QCodeReviewTimeoutError;
|
|
25
|
+
class QCodeReviewInternalError extends QCodeReviewError {
|
|
26
|
+
constructor(message) {
|
|
27
|
+
super(message);
|
|
28
|
+
this.name = 'QCodeReviewInternalError';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.QCodeReviewInternalError = QCodeReviewInternalError;
|
|
32
|
+
//# sourceMappingURL=qCodeReviewErrors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qCodeReviewErrors.js","sourceRoot":"","sources":["../../../../../src/language-server/agenticChat/tools/qCodeAnalysis/qCodeReviewErrors.ts"],"names":[],"mappings":";;;AAAA,MAAa,gBAAiB,SAAQ,KAAK;IACvC,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAA;IAClC,CAAC;CACJ;AALD,4CAKC;AAED,MAAa,0BAA2B,SAAQ,gBAAgB;IAC5D,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAA;IAC5C,CAAC;CACJ;AALD,gEAKC;AAED,MAAa,uBAAwB,SAAQ,gBAAgB;IACzD,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAA;IACzC,CAAC;CACJ;AALD,0DAKC;AAED,MAAa,wBAAyB,SAAQ,gBAAgB;IAC1D,YAAY,OAAe;QACvB,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,0BAA0B,CAAA;IAC1C,CAAC;CACJ;AALD,4DAKC"}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/**
|
|
7
|
+
* Input schema for QCodeReview tool
|
|
8
|
+
*/
|
|
9
|
+
export declare const Q_CODE_REVIEW_INPUT_SCHEMA: {
|
|
10
|
+
type: "object";
|
|
11
|
+
description: string;
|
|
12
|
+
properties: {
|
|
13
|
+
scopeOfReview: {
|
|
14
|
+
type: "string";
|
|
15
|
+
description: string;
|
|
16
|
+
enum: string[];
|
|
17
|
+
};
|
|
18
|
+
fileLevelArtifacts: {
|
|
19
|
+
type: "array";
|
|
20
|
+
description: string;
|
|
21
|
+
items: {
|
|
22
|
+
type: "object";
|
|
23
|
+
description: string;
|
|
24
|
+
properties: {
|
|
25
|
+
path: {
|
|
26
|
+
type: "string";
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
required: readonly ["path"];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
folderLevelArtifacts: {
|
|
34
|
+
type: "array";
|
|
35
|
+
description: string;
|
|
36
|
+
items: {
|
|
37
|
+
type: "object";
|
|
38
|
+
description: string;
|
|
39
|
+
properties: {
|
|
40
|
+
path: {
|
|
41
|
+
type: "string";
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
required: readonly ["path"];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
required: readonly ["scopeOfReview"];
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Zod schema for input validation during execution of Q Code Review tool
|
|
53
|
+
*/
|
|
54
|
+
export declare const Z_Q_CODE_REVIEW_INPUT_SCHEMA: z.ZodObject<{
|
|
55
|
+
scopeOfReview: z.ZodEnum<[string, ...string[]]>;
|
|
56
|
+
fileLevelArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
|
+
path: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
path: string;
|
|
60
|
+
}, {
|
|
61
|
+
path: string;
|
|
62
|
+
}>, "many">>;
|
|
63
|
+
folderLevelArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
64
|
+
path: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
path: string;
|
|
67
|
+
}, {
|
|
68
|
+
path: string;
|
|
69
|
+
}>, "many">>;
|
|
70
|
+
ruleArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
71
|
+
path: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
path: string;
|
|
74
|
+
}, {
|
|
75
|
+
path: string;
|
|
76
|
+
}>, "many">>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
scopeOfReview: string;
|
|
79
|
+
fileLevelArtifacts?: {
|
|
80
|
+
path: string;
|
|
81
|
+
}[] | undefined;
|
|
82
|
+
folderLevelArtifacts?: {
|
|
83
|
+
path: string;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
ruleArtifacts?: {
|
|
86
|
+
path: string;
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
scopeOfReview: string;
|
|
90
|
+
fileLevelArtifacts?: {
|
|
91
|
+
path: string;
|
|
92
|
+
}[] | undefined;
|
|
93
|
+
folderLevelArtifacts?: {
|
|
94
|
+
path: string;
|
|
95
|
+
}[] | undefined;
|
|
96
|
+
ruleArtifacts?: {
|
|
97
|
+
path: string;
|
|
98
|
+
}[] | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
/**
|
|
101
|
+
* Schema for a single finding
|
|
102
|
+
*/
|
|
103
|
+
export declare const Q_FINDING_SCHEMA: z.ZodObject<{
|
|
104
|
+
description: z.ZodObject<{
|
|
105
|
+
markdown: z.ZodString;
|
|
106
|
+
text: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
text: string;
|
|
109
|
+
markdown: string;
|
|
110
|
+
}, {
|
|
111
|
+
text: string;
|
|
112
|
+
markdown: string;
|
|
113
|
+
}>;
|
|
114
|
+
endLine: z.ZodNumber;
|
|
115
|
+
filePath: z.ZodString;
|
|
116
|
+
findingId: z.ZodString;
|
|
117
|
+
relatedVulnerabilities: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
|
118
|
+
remediation: z.ZodObject<{
|
|
119
|
+
recommendation: z.ZodObject<{
|
|
120
|
+
text: z.ZodString;
|
|
121
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
text: string;
|
|
124
|
+
url?: string | null | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
text: string;
|
|
127
|
+
url?: string | null | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
recommendation: {
|
|
131
|
+
text: string;
|
|
132
|
+
url?: string | null | undefined;
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
recommendation: {
|
|
136
|
+
text: string;
|
|
137
|
+
url?: string | null | undefined;
|
|
138
|
+
};
|
|
139
|
+
}>;
|
|
140
|
+
severity: z.ZodEnum<[string, ...string[]]>;
|
|
141
|
+
startLine: z.ZodNumber;
|
|
142
|
+
title: z.ZodString;
|
|
143
|
+
findingContext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
detectorId: z.ZodOptional<z.ZodString>;
|
|
145
|
+
detectorName: z.ZodOptional<z.ZodString>;
|
|
146
|
+
ruleId: z.ZodOptional<z.ZodString>;
|
|
147
|
+
suggestedFixes: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodString>, "many">>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
filePath: string;
|
|
150
|
+
description: {
|
|
151
|
+
text: string;
|
|
152
|
+
markdown: string;
|
|
153
|
+
};
|
|
154
|
+
title: string;
|
|
155
|
+
startLine: number;
|
|
156
|
+
endLine: number;
|
|
157
|
+
findingId: string;
|
|
158
|
+
relatedVulnerabilities: (string | undefined)[];
|
|
159
|
+
remediation: {
|
|
160
|
+
recommendation: {
|
|
161
|
+
text: string;
|
|
162
|
+
url?: string | null | undefined;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
severity: string;
|
|
166
|
+
findingContext?: string | null | undefined;
|
|
167
|
+
detectorId?: string | undefined;
|
|
168
|
+
detectorName?: string | undefined;
|
|
169
|
+
ruleId?: string | undefined;
|
|
170
|
+
suggestedFixes?: (string | undefined)[] | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
filePath: string;
|
|
173
|
+
description: {
|
|
174
|
+
text: string;
|
|
175
|
+
markdown: string;
|
|
176
|
+
};
|
|
177
|
+
title: string;
|
|
178
|
+
startLine: number;
|
|
179
|
+
endLine: number;
|
|
180
|
+
findingId: string;
|
|
181
|
+
relatedVulnerabilities: (string | undefined)[];
|
|
182
|
+
remediation: {
|
|
183
|
+
recommendation: {
|
|
184
|
+
text: string;
|
|
185
|
+
url?: string | null | undefined;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
severity: string;
|
|
189
|
+
findingContext?: string | null | undefined;
|
|
190
|
+
detectorId?: string | undefined;
|
|
191
|
+
detectorName?: string | undefined;
|
|
192
|
+
ruleId?: string | undefined;
|
|
193
|
+
suggestedFixes?: (string | undefined)[] | undefined;
|
|
194
|
+
}>;
|
|
195
|
+
/**
|
|
196
|
+
* Schema for an array of findings
|
|
197
|
+
*/
|
|
198
|
+
export declare const Q_FINDINGS_SCHEMA: z.ZodArray<z.ZodObject<{
|
|
199
|
+
description: z.ZodObject<{
|
|
200
|
+
markdown: z.ZodString;
|
|
201
|
+
text: z.ZodString;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
text: string;
|
|
204
|
+
markdown: string;
|
|
205
|
+
}, {
|
|
206
|
+
text: string;
|
|
207
|
+
markdown: string;
|
|
208
|
+
}>;
|
|
209
|
+
endLine: z.ZodNumber;
|
|
210
|
+
filePath: z.ZodString;
|
|
211
|
+
findingId: z.ZodString;
|
|
212
|
+
relatedVulnerabilities: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
|
213
|
+
remediation: z.ZodObject<{
|
|
214
|
+
recommendation: z.ZodObject<{
|
|
215
|
+
text: z.ZodString;
|
|
216
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
text: string;
|
|
219
|
+
url?: string | null | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
text: string;
|
|
222
|
+
url?: string | null | undefined;
|
|
223
|
+
}>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
recommendation: {
|
|
226
|
+
text: string;
|
|
227
|
+
url?: string | null | undefined;
|
|
228
|
+
};
|
|
229
|
+
}, {
|
|
230
|
+
recommendation: {
|
|
231
|
+
text: string;
|
|
232
|
+
url?: string | null | undefined;
|
|
233
|
+
};
|
|
234
|
+
}>;
|
|
235
|
+
severity: z.ZodEnum<[string, ...string[]]>;
|
|
236
|
+
startLine: z.ZodNumber;
|
|
237
|
+
title: z.ZodString;
|
|
238
|
+
findingContext: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
detectorId: z.ZodOptional<z.ZodString>;
|
|
240
|
+
detectorName: z.ZodOptional<z.ZodString>;
|
|
241
|
+
ruleId: z.ZodOptional<z.ZodString>;
|
|
242
|
+
suggestedFixes: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodString>, "many">>;
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
filePath: string;
|
|
245
|
+
description: {
|
|
246
|
+
text: string;
|
|
247
|
+
markdown: string;
|
|
248
|
+
};
|
|
249
|
+
title: string;
|
|
250
|
+
startLine: number;
|
|
251
|
+
endLine: number;
|
|
252
|
+
findingId: string;
|
|
253
|
+
relatedVulnerabilities: (string | undefined)[];
|
|
254
|
+
remediation: {
|
|
255
|
+
recommendation: {
|
|
256
|
+
text: string;
|
|
257
|
+
url?: string | null | undefined;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
severity: string;
|
|
261
|
+
findingContext?: string | null | undefined;
|
|
262
|
+
detectorId?: string | undefined;
|
|
263
|
+
detectorName?: string | undefined;
|
|
264
|
+
ruleId?: string | undefined;
|
|
265
|
+
suggestedFixes?: (string | undefined)[] | undefined;
|
|
266
|
+
}, {
|
|
267
|
+
filePath: string;
|
|
268
|
+
description: {
|
|
269
|
+
text: string;
|
|
270
|
+
markdown: string;
|
|
271
|
+
};
|
|
272
|
+
title: string;
|
|
273
|
+
startLine: number;
|
|
274
|
+
endLine: number;
|
|
275
|
+
findingId: string;
|
|
276
|
+
relatedVulnerabilities: (string | undefined)[];
|
|
277
|
+
remediation: {
|
|
278
|
+
recommendation: {
|
|
279
|
+
text: string;
|
|
280
|
+
url?: string | null | undefined;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
severity: string;
|
|
284
|
+
findingContext?: string | null | undefined;
|
|
285
|
+
detectorId?: string | undefined;
|
|
286
|
+
detectorName?: string | undefined;
|
|
287
|
+
ruleId?: string | undefined;
|
|
288
|
+
suggestedFixes?: (string | undefined)[] | undefined;
|
|
289
|
+
}>, "many">;
|