@mate_tsaava/pr-review 1.0.0 → 1.0.1
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/dist/cli.js +0 -0
- package/dist/llm/claude.js +6 -1
- package/package.json +10 -9
- package/LICENSE.md +0 -21
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/llm/claude.js
CHANGED
|
@@ -80,6 +80,10 @@ export class ClaudeAdapter {
|
|
|
80
80
|
role: "user",
|
|
81
81
|
content: userPrompt,
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
role: "assistant",
|
|
85
|
+
content: "{",
|
|
86
|
+
},
|
|
83
87
|
],
|
|
84
88
|
});
|
|
85
89
|
if (this.verbose) {
|
|
@@ -99,7 +103,8 @@ export class ClaudeAdapter {
|
|
|
99
103
|
console.log(content.text);
|
|
100
104
|
console.log("=".repeat(80) + "\n");
|
|
101
105
|
}
|
|
102
|
-
|
|
106
|
+
// Prepend "{" since we used prefill
|
|
107
|
+
return this.parseResponse("{" + content.text);
|
|
103
108
|
}
|
|
104
109
|
catch (error) {
|
|
105
110
|
lastError = error instanceof Error ? error : new Error(String(error));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mate_tsaava/pr-review",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "AI-powered code review CLI for Azure DevOps pull requests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc && cp -r src/rules dist/",
|
|
22
|
+
"clean": "rm -rf dist",
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
25
|
+
},
|
|
20
26
|
"keywords": [
|
|
21
27
|
"azure-devops",
|
|
22
28
|
"ado",
|
|
@@ -32,23 +38,18 @@
|
|
|
32
38
|
"node": ">=18"
|
|
33
39
|
},
|
|
34
40
|
"dependencies": {
|
|
41
|
+
"@mate_tsaava/azure-devops-core": "workspace:*",
|
|
35
42
|
"@anthropic-ai/sdk": "^0.39.0",
|
|
36
43
|
"openai": "^4.77.0",
|
|
37
44
|
"yargs": "^18.0.0",
|
|
38
45
|
"zod": "^3.25.63",
|
|
39
46
|
"chalk": "^5.4.1",
|
|
40
|
-
"dotenv": "^16.4.7"
|
|
41
|
-
"@mate_tsaava/azure-devops-core": "1.0.0"
|
|
47
|
+
"dotenv": "^16.4.7"
|
|
42
48
|
},
|
|
43
49
|
"devDependencies": {
|
|
44
50
|
"@types/node": "^22.19.1",
|
|
45
51
|
"@types/yargs": "^17.0.33",
|
|
46
52
|
"typescript": "^5.9.3",
|
|
47
53
|
"vitest": "^3.0.0"
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "tsc && cp -r src/rules dist/",
|
|
51
|
-
"clean": "rm -rf dist",
|
|
52
|
-
"test": "vitest run"
|
|
53
54
|
}
|
|
54
|
-
}
|
|
55
|
+
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|