open-azdo 0.1.0
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/README.md +114 -0
- package/SECURITY.md +64 -0
- package/dist/open-azdo.js +29787 -0
- package/dist/open-azdo.js.map +151 -0
- package/examples/azure-pipelines.review.yml +32 -0
- package/package.json +44 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
trigger: none
|
|
2
|
+
|
|
3
|
+
pool:
|
|
4
|
+
vmImage: ubuntu-latest
|
|
5
|
+
|
|
6
|
+
variables:
|
|
7
|
+
OpenCodeModel: openai/gpt-5.4
|
|
8
|
+
|
|
9
|
+
steps:
|
|
10
|
+
- checkout: self
|
|
11
|
+
clean: true
|
|
12
|
+
fetchDepth: 0
|
|
13
|
+
persistCredentials: false
|
|
14
|
+
|
|
15
|
+
- bash: |
|
|
16
|
+
set -euo pipefail
|
|
17
|
+
|
|
18
|
+
curl -fsSL https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-x64.zip -o bun.zip
|
|
19
|
+
unzip -q bun.zip
|
|
20
|
+
export PATH="$PWD/bun-linux-x64:$PATH"
|
|
21
|
+
|
|
22
|
+
curl -fsSL https://github.com/sst/opencode/releases/download/v1.2.27/opencode-linux-x64.tar.gz -o opencode.tar.gz
|
|
23
|
+
mkdir -p opencode-bin
|
|
24
|
+
tar -xzf opencode.tar.gz -C opencode-bin
|
|
25
|
+
export PATH="$PWD/opencode-bin:$PATH"
|
|
26
|
+
|
|
27
|
+
bunx open-azdo review --model "$(OpenCodeModel)"
|
|
28
|
+
displayName: Review Pull Request
|
|
29
|
+
env:
|
|
30
|
+
# Azure Pipelines: enable "Allow scripts to access the OAuth token".
|
|
31
|
+
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
|
32
|
+
OPENAI_API_KEY: $(OpenAIApiKey)
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "open-azdo",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Secure Azure DevOps pull request review CLI powered by OpenCode",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"open-azdo": "./dist/open-azdo.js"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md",
|
|
15
|
+
"SECURITY.md",
|
|
16
|
+
"examples"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"bun": ">=1.3.10"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
23
|
+
"fmt": "oxfmt --write src bin test",
|
|
24
|
+
"fmt:check": "oxfmt --check src bin test",
|
|
25
|
+
"lint": "oxlint src bin test",
|
|
26
|
+
"test": "bun test",
|
|
27
|
+
"check": "bun run typecheck && bun run lint && bun run fmt:check && bun test",
|
|
28
|
+
"build": "bun run build.ts",
|
|
29
|
+
"publish:dry": "bun run check && bun run build && bun publish --dry-run",
|
|
30
|
+
"publish:npm": "bun run check && bun run build && bun publish"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@effect/platform-bun": "4.0.0-beta.33",
|
|
34
|
+
"effect": "4.0.0-beta.33"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@effect/language-service": "0.80.0",
|
|
38
|
+
"@tsconfig/bun": "1.0.10",
|
|
39
|
+
"@types/bun": "1.3.10",
|
|
40
|
+
"oxfmt": "0.41.0",
|
|
41
|
+
"oxlint": "1.56.0",
|
|
42
|
+
"typescript": "5.9.3"
|
|
43
|
+
}
|
|
44
|
+
}
|