opencode-azure-devops-pr-review 0.3.1 → 0.3.3
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 +46 -0
- package/README.md +128 -86
- package/package.json +2 -11
- package/src/attribution.mjs +2 -4
- package/src/azure.mjs +5 -2
- package/src/host.mjs +28 -5
- package/src/runtime.mjs +13 -7
- package/src/session.mjs +6 -12
- package/AGENTS.md +0 -164
- package/CODE_OF_CONDUCT.md +0 -83
- package/CONTRIBUTING.md +0 -84
- package/SECURITY.md +0 -38
- package/config/settings.example.json +0 -55
- package/config/settings.schema.json +0 -316
- package/docs/ARCHITECTURE.md +0 -414
- package/docs/AZURE_DEVOPS.md +0 -217
- package/docs/COMMENTING.md +0 -399
- package/docs/DEBUGGING.md +0 -146
- package/docs/DEMO.md +0 -195
- package/docs/ENTERPRISE.md +0 -236
- package/docs/QUICKSTART.md +0 -238
- package/docs/RELEASING.md +0 -95
- package/docs/ROADMAP.md +0 -241
- package/docs/VALIDATION.md +0 -2127
- package/docs/VALIDATION_HISTORY.md +0 -1845
- package/docs/VERIFICATION.md +0 -42
- package/docs/assets/RECORDING.md +0 -131
- package/docs/assets/adjust-findings-teaser.gif +0 -0
- package/docs/assets/adjust-preview.png +0 -0
- package/docs/assets/adjust-publication.png +0 -0
- package/docs/assets/example-comments.md +0 -38
- package/docs/assets/generate-demo-gif.py +0 -25
- package/docs/assets/generate-demo.mjs +0 -141
- package/docs/assets/live-azure-readback.png +0 -0
- package/docs/assets/live-preview.png +0 -0
- package/docs/assets/live-review-teaser.gif +0 -0
- package/docs/assets/live-review.png +0 -0
- package/docs/assets/quick-review-demo.gif +0 -0
- package/docs/assets/record-terminal.py +0 -124
- package/docs/assets/render-terminal-demo.py +0 -168
- package/docs/assets/review-example.svg +0 -1
- package/docs/assets/walkthrough.svg +0 -1
- package/docs/releases/v0.1.0.md +0 -74
- package/docs/releases/v0.2.0.md +0 -107
- package/docs/releases/v0.2.1.md +0 -65
- package/docs/releases/v0.2.2.md +0 -76
- package/docs/releases/v0.2.3.md +0 -93
- package/docs/releases/v0.3.0.md +0 -125
- package/docs/releases/v0.3.1.md +0 -87
- package/install.sh +0 -171
- package/scripts/merge-settings.py +0 -120
- package/uninstall.sh +0 -50
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
"""Render recorded terminal output; captions and timing edits live outside it.
|
|
3
|
-
|
|
4
|
-
Needs optional pyte, Pillow, and ffmpeg (or imageio-ffmpeg). No live services.
|
|
5
|
-
The edit manifest contains ordered segments with start/end/seconds/title and
|
|
6
|
-
optional screenshots with at/name/title. All times refer to the original cast.
|
|
7
|
-
"""
|
|
8
|
-
import argparse
|
|
9
|
-
import copy
|
|
10
|
-
import json
|
|
11
|
-
from pathlib import Path
|
|
12
|
-
import shutil
|
|
13
|
-
import subprocess
|
|
14
|
-
|
|
15
|
-
from PIL import Image, ImageDraw, ImageFont
|
|
16
|
-
import pyte
|
|
17
|
-
|
|
18
|
-
parser = argparse.ArgumentParser(description=__doc__)
|
|
19
|
-
parser.add_argument('cast', type=Path)
|
|
20
|
-
parser.add_argument('edit', type=Path)
|
|
21
|
-
parser.add_argument('--output', required=True, type=Path)
|
|
22
|
-
parser.add_argument('--font', type=Path, default=Path('/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf'))
|
|
23
|
-
parser.add_argument('--emoji-font', type=Path, help='Optional font with emoji glyphs; never distributed with the output')
|
|
24
|
-
parser.add_argument('--crop-bottom', type=int, default=0, help='Hide this many bottom terminal rows; keep the original cast intact')
|
|
25
|
-
parser.add_argument('--fps', type=int, default=10)
|
|
26
|
-
parser.add_argument('--gif', action='store_true')
|
|
27
|
-
args = parser.parse_args()
|
|
28
|
-
lines = args.cast.read_text().splitlines()
|
|
29
|
-
header = json.loads(lines[0])
|
|
30
|
-
assert header['version'] == 2
|
|
31
|
-
assert 0 <= args.crop_bottom < header['height']
|
|
32
|
-
visible_rows = header['height'] - args.crop_bottom
|
|
33
|
-
rows = [json.loads(line) for line in lines[1:] if line]
|
|
34
|
-
assert rows and all(len(row) == 3 and row[1] == 'o' for row in rows)
|
|
35
|
-
assert all(a[0] <= b[0] for a, b in zip(rows, rows[1:]))
|
|
36
|
-
edit = json.loads(args.edit.read_text())
|
|
37
|
-
segments = edit['segments']
|
|
38
|
-
assert segments and all(0 <= segment['start'] <= segment['end'] <= rows[-1][0]
|
|
39
|
-
and segment['seconds'] > 0 for segment in segments)
|
|
40
|
-
assert 1 <= args.fps <= 30
|
|
41
|
-
font = ImageFont.truetype(str(args.font), 16)
|
|
42
|
-
emoji_font = ImageFont.truetype(str(args.emoji_font), 16) if args.emoji_font else font
|
|
43
|
-
label_font = ImageFont.truetype(str(args.font), 17)
|
|
44
|
-
small_font = ImageFont.truetype(str(args.font), 12)
|
|
45
|
-
cell_width, cell_height = font.getlength('M'), 21
|
|
46
|
-
padding, top, bottom = 24, 88, 45
|
|
47
|
-
width = round(header['width'] * cell_width + padding * 2)
|
|
48
|
-
height = visible_rows * cell_height + top + bottom
|
|
49
|
-
width += width % 2
|
|
50
|
-
height += height % 2
|
|
51
|
-
palette = {'black': '#1c2028', 'red': '#ec7279', 'green': '#9dd39b',
|
|
52
|
-
'brown': '#e8c37f', 'blue': '#8ab9f1', 'magenta': '#c8a3e8',
|
|
53
|
-
'cyan': '#8cd0cc', 'white': '#d9e0e9', 'brightblack': '#727a8b',
|
|
54
|
-
'brightred': '#ff8a8a', 'brightgreen': '#b6e5a8', 'brightbrown': '#ffe0a0',
|
|
55
|
-
'brightblue': '#a3cfff', 'brightmagenta': '#dbb2f3',
|
|
56
|
-
'brightcyan': '#b1edeb', 'brightwhite': '#ffffff'}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
def color(value, default):
|
|
60
|
-
if value == 'default':
|
|
61
|
-
return default
|
|
62
|
-
if value in palette:
|
|
63
|
-
return palette[value]
|
|
64
|
-
if len(value) == 6 and all(c in '0123456789abcdefABCDEF' for c in value):
|
|
65
|
-
return '#' + value
|
|
66
|
-
return default
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
# Replay only real output, in source order. Save frames needed by the edit.
|
|
70
|
-
requested = []
|
|
71
|
-
for segment in segments:
|
|
72
|
-
count = max(1, round(segment['seconds'] * args.fps))
|
|
73
|
-
requested.extend(segment['start'] + (segment['end'] - segment['start']) * index / max(1, count - 1)
|
|
74
|
-
for index in range(count))
|
|
75
|
-
requested.extend(item['at'] for item in edit.get('screenshots', []))
|
|
76
|
-
assert all(0 <= moment <= rows[-1][0] for moment in requested)
|
|
77
|
-
screen = pyte.Screen(header['width'], header['height'])
|
|
78
|
-
stream = pyte.Stream(screen)
|
|
79
|
-
event = 0
|
|
80
|
-
states = {}
|
|
81
|
-
for moment in sorted(set(requested)):
|
|
82
|
-
while event < len(rows) and rows[event][0] <= moment:
|
|
83
|
-
# pyte ignores terminal capabilities; it renders only their visible effects.
|
|
84
|
-
stream.feed(rows[event][2])
|
|
85
|
-
event += 1
|
|
86
|
-
states[moment] = copy.deepcopy(screen.buffer)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
glyph_widths = {}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
def glyph_width(char):
|
|
93
|
-
if char not in glyph_widths:
|
|
94
|
-
glyph_widths[char] = font.getlength(char)
|
|
95
|
-
return glyph_widths[char]
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
def render(moment, title):
|
|
99
|
-
result = Image.new('RGB', (width, height), '#111722')
|
|
100
|
-
draw = ImageDraw.Draw(result)
|
|
101
|
-
draw.text((padding, 17), 'AZPR / REAL TERMINAL RECORDING', font=small_font, fill='#8db6dc')
|
|
102
|
-
draw.text((padding, 43), title, font=label_font, fill='#ffffff')
|
|
103
|
-
draw.rectangle((padding - 8, top - 6, width - padding + 8, top + visible_rows * cell_height + 6), fill='#0c0f15')
|
|
104
|
-
buffer = states[moment]
|
|
105
|
-
for row in range(visible_rows):
|
|
106
|
-
cells = buffer[row]
|
|
107
|
-
column = 0
|
|
108
|
-
while column < header['width']:
|
|
109
|
-
cell = cells[column]
|
|
110
|
-
fg, bg = color(cell.fg, '#d9e0e9'), color(cell.bg, '#0c0f15')
|
|
111
|
-
if cell.reverse:
|
|
112
|
-
fg, bg = bg, fg
|
|
113
|
-
end = column + 1
|
|
114
|
-
while end < header['width'] and (cells[end].fg, cells[end].bg, cells[end].reverse) == (cell.fg, cell.bg, cell.reverse):
|
|
115
|
-
end += 1
|
|
116
|
-
if bg != '#0c0f15':
|
|
117
|
-
draw.rectangle((padding + column * cell_width, top + row * cell_height,
|
|
118
|
-
padding + end * cell_width - 1, top + (row + 1) * cell_height - 1), fill=bg)
|
|
119
|
-
# ASCII and box-drawing runs share the font's exact cell width.
|
|
120
|
-
# Place wide/combining glyphs individually to preserve columns.
|
|
121
|
-
text = ''.join(cells[index].data for index in range(column, end))
|
|
122
|
-
if text.strip():
|
|
123
|
-
if all(len(cells[index].data) == 1 and abs(glyph_width(cells[index].data) - cell_width) < 0.1
|
|
124
|
-
for index in range(column, end)):
|
|
125
|
-
draw.text((padding + column * cell_width, top + row * cell_height), text, font=font, fill=fg)
|
|
126
|
-
else:
|
|
127
|
-
for index in range(column, end):
|
|
128
|
-
if cells[index].data.strip():
|
|
129
|
-
value = cells[index].data
|
|
130
|
-
selected_font = emoji_font if any(ord(char) >= 0x1f000 for char in value) else font
|
|
131
|
-
draw.text((padding + index * cell_width, top + row * cell_height), value,
|
|
132
|
-
font=selected_font, fill=fg, embedded_color=selected_font is not font)
|
|
133
|
-
column = end
|
|
134
|
-
disclosure = 'Edited terminal replay | Waiting time shortened | '
|
|
135
|
-
disclosure += 'Terminal status bar cropped' if args.crop_bottom else 'Test PR with seeded defects'
|
|
136
|
-
draw.text((padding, height - 27), disclosure, font=small_font, fill='#8e9cad')
|
|
137
|
-
return result
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
args.output.parent.mkdir(parents=True, exist_ok=True)
|
|
141
|
-
ffmpeg = shutil.which('ffmpeg')
|
|
142
|
-
if not ffmpeg:
|
|
143
|
-
import imageio_ffmpeg
|
|
144
|
-
ffmpeg = imageio_ffmpeg.get_ffmpeg_exe()
|
|
145
|
-
command = [ffmpeg, '-y', '-loglevel', 'error', '-f', 'rawvideo', '-pix_fmt', 'rgb24',
|
|
146
|
-
'-s', f'{width}x{height}', '-r', str(args.fps), '-i', '-', '-an']
|
|
147
|
-
if args.gif:
|
|
148
|
-
command.extend(['-vf', 'scale=960:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse', '-loop', '1'])
|
|
149
|
-
else:
|
|
150
|
-
command.extend(['-c:v', 'libx264', '-crf', '21', '-pix_fmt', 'yuv420p', '-movflags', '+faststart'])
|
|
151
|
-
command.append(str(args.output))
|
|
152
|
-
encoder = subprocess.Popen(command, stdin=subprocess.PIPE)
|
|
153
|
-
try:
|
|
154
|
-
for segment in segments:
|
|
155
|
-
count = max(1, round(segment['seconds'] * args.fps))
|
|
156
|
-
for index in range(count):
|
|
157
|
-
moment = segment['start'] + (segment['end'] - segment['start']) * index / max(1, count - 1)
|
|
158
|
-
encoder.stdin.write(render(moment, segment['title']).tobytes())
|
|
159
|
-
finally:
|
|
160
|
-
encoder.stdin.close()
|
|
161
|
-
assert encoder.wait() == 0, 'Video encoder failed'
|
|
162
|
-
for item in edit.get('screenshots', []):
|
|
163
|
-
name = Path(item['name'])
|
|
164
|
-
assert name.name == str(name) and name.suffix == '.png', 'Screenshot name must be a PNG basename'
|
|
165
|
-
render(item['at'], item['title']).save(args.output.parent / name)
|
|
166
|
-
print(json.dumps({'output': str(args.output), 'seconds': sum(item['seconds'] for item in segments),
|
|
167
|
-
'sourceSeconds': rows[-1][0], 'size': [width, height],
|
|
168
|
-
'screenshots': len(edit.get('screenshots', []))}))
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1088" viewBox="0 0 1200 1088" role="img" aria-labelledby="title desc"><title id="title">Azure DevOps comment format: synthetic quick-review example</title><desc id="desc">Illustrative layout, not an Azure screenshot. One medium finding about pagination is shown as an inline comment and a summary index. Quick review is explicitly not independently verified. Exact accessible comment text is linked in the demo guide.</desc><rect x="0" y="0" width="1200" height="1088" rx="0" fill="#f2f6fb" stroke="none"/><text x="42" y="47" fill="#005a9e" font-family="Arial, sans-serif" font-size="14" font-weight="700">ILLUSTRATIVE EXAMPLE / SYNTHETIC PR</text><text x="42" y="94" fill="#172b4d" font-family="Arial, sans-serif" font-size="34" font-weight="700">Review findings, where your team works.</text><text x="42" y="128" fill="#52637b" font-family="Arial, sans-serif" font-size="19" font-weight="400">Azure DevOps-style layout · Real comment renderer · Hand-written fixture</text><rect x="40" y="156" width="1120" height="552" rx="14" fill="#ffffff" stroke="#dce5ef"/><rect x="40" y="156" width="1120" height="46" rx="12" fill="#005a9e" stroke="none"/><rect x="40" y="184" width="1120" height="18" rx="0" fill="#005a9e" stroke="none"/><text x="64" y="186" fill="#ffffff" font-family="Arial, sans-serif" font-size="19" font-weight="700">Example project / Pull request #42 / Files</text><text x="64" y="236" fill="#172b4d" font-family="Consolas, monospace" font-size="19" font-weight="700">src/pagination.js</text><rect x="64" y="254" width="1072" height="118" rx="8" fill="#f6f8fa" stroke="none"/><rect x="64" y="312" width="1072" height="26" rx="0" fill="#e7f4ec" stroke="none"/><text x="82" y="279" fill="#172b4d" font-family="Consolas, monospace" font-size="18" font-weight="400">1 export function page(items, size, offset) {</text><text x="82" y="305" fill="#172b4d" font-family="Consolas, monospace" font-size="18" font-weight="400">2 const start = offset * size;</text><text x="82" y="331" fill="#172b4d" font-family="Consolas, monospace" font-size="18" font-weight="400">3 return items.slice(start, size);</text><text x="82" y="357" fill="#172b4d" font-family="Consolas, monospace" font-size="18" font-weight="400">4 }</text><circle cx="77" cy="409" r="8" fill="#b87900"/><text x="96" y="416" fill="#172b4d" font-family="Arial, sans-serif" font-size="24" font-weight="700">medium: Later pages are empty</text><text x="64" y="460" fill="#005a9e" font-family="Arial, sans-serif" font-size="17" font-weight="700">Summary</text><text x="64" y="486" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">The second and later pages return no items.</text><text x="64" y="525" fill="#005a9e" font-family="Arial, sans-serif" font-size="17" font-weight="700">Evidence</text><text x="64" y="551" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">page([1, 2, 3, 4], 2, 1) returns [] instead of [3, 4].</text><text x="64" y="590" fill="#005a9e" font-family="Arial, sans-serif" font-size="17" font-weight="700">Suggested fix</text><text x="64" y="616" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">Use start + size as the exclusive end of the slice.</text><path d="M64 635H1136" stroke="#dce5ef"/><text x="64" y="659" fill="#52637b" font-family="Arial, sans-serif" font-size="16" font-weight="400">AI-generated review; not human review or approval. Review method: quick review, not independently</text><text x="64" y="682" fill="#52637b" font-family="Arial, sans-serif" font-size="16" font-weight="400">verified. Models: example/model</text><rect x="40" y="730" width="1120" height="288" rx="14" fill="#ffffff" stroke="#dce5ef"/><text x="64" y="770" fill="#172b4d" font-family="Arial, sans-serif" font-size="27" font-weight="700">PR Review Summary</text><text x="64" y="804" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">Adds pagination for a list of items.</text><text x="64" y="838" fill="#52637b" font-family="Arial, sans-serif" font-size="18" font-weight="400">high: 0 · medium: 1 · low: 0</text><rect x="64" y="856" width="1072" height="37" rx="5" fill="#edf5fd" stroke="none"/><text x="80" y="881" fill="#005a9e" font-family="Arial, sans-serif" font-size="17" font-weight="700">Severity</text><text x="232" y="881" fill="#005a9e" font-family="Arial, sans-serif" font-size="17" font-weight="700">Summary</text><text x="776" y="881" fill="#005a9e" font-family="Arial, sans-serif" font-size="17" font-weight="700">Location</text><text x="80" y="923" fill="#8a5900" font-family="Arial, sans-serif" font-size="19" font-weight="700">medium</text><text x="232" y="923" fill="#172b4d" font-family="Arial, sans-serif" font-size="19" font-weight="400">Q-1 — Later pages are empty</text><text x="776" y="923" fill="#172b4d" font-family="Consolas, monospace" font-size="17" font-weight="400">head:/src/pagination.js:3</text><text x="64" y="963" fill="#52637b" font-family="Arial, sans-serif" font-size="16" font-weight="400">AI-generated review; not human review or approval. Review method: quick review, not independently</text><text x="64" y="986" fill="#52637b" font-family="Arial, sans-serif" font-size="16" font-weight="400">verified. Models: example/model</text><text x="42" y="1059" fill="#52637b" font-family="Arial, sans-serif" font-size="16" font-weight="400">No live model call or Azure publication. Colors and spacing are illustrative; comment text is renderer-generated.</text></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="1100" viewBox="0 0 1200 1100" role="img" aria-labelledby="title desc"><title id="title">Four-step quick review walkthrough</title><desc id="desc">Synthetic example: run pr-check and pr-quick with an Azure pull request URL, preview with pr-comment, then optionally publish with pr-comment --publish. No model call or Azure publication was made for this illustration.</desc><rect x="0" y="0" width="1200" height="1100" rx="0" fill="#f2f6fb" stroke="none"/><text x="42" y="47" fill="#005a9e" font-family="Arial, sans-serif" font-size="14" font-weight="700">ILLUSTRATIVE EXAMPLE / SYNTHETIC PR</text><text x="42" y="99" fill="#172b4d" font-family="Arial, sans-serif" font-size="34" font-weight="700">Your first review, step by step</text><rect x="42" y="142" width="1118" height="204" rx="12" fill="#ffffff" stroke="#dce5ef"/><text x="66" y="178" fill="#172b4d" font-family="Arial, sans-serif" font-size="24" font-weight="700">1. Check setup</text><text x="66" y="218" fill="#005a9e" font-family="Consolas, monospace" font-size="24" font-weight="700">/pr-check <azure-pr-url></text><text x="66" y="258" fill="#005a9e" font-family="Arial, sans-serif" font-size="20" font-weight="700">PR access and model readiness</text><text x="66" y="295" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">Check PR, source and discussion access, plus plugin configuration and model readiness.</text><text x="66" y="326" fill="#52637b" font-family="Arial, sans-serif" font-size="17" font-weight="400">This command does not call a review model.</text><rect x="42" y="370" width="1118" height="204" rx="12" fill="#ffffff" stroke="#dce5ef"/><text x="66" y="406" fill="#172b4d" font-family="Arial, sans-serif" font-size="24" font-weight="700">2. Run a quick review</text><text x="66" y="446" fill="#005a9e" font-family="Consolas, monospace" font-size="24" font-weight="700">/pr-quick <azure-pr-url></text><text x="66" y="486" fill="#8a5900" font-family="Arial, sans-serif" font-size="20" font-weight="700">REPORTED · verification: none</text><text x="66" y="523" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">One reviewer per shard covers function and risk. The example finding: later pages are empty.</text><text x="66" y="554" fill="#52637b" font-family="Arial, sans-serif" font-size="17" font-weight="400">No independent verifier. A session can make several model requests.</text><rect x="42" y="598" width="1118" height="204" rx="12" fill="#ffffff" stroke="#dce5ef"/><text x="66" y="634" fill="#172b4d" font-family="Arial, sans-serif" font-size="24" font-weight="700">3. Preview comments</text><text x="66" y="674" fill="#005a9e" font-family="Consolas, monospace" font-size="24" font-weight="700">/pr-comment</text><text x="66" y="714" fill="#005a9e" font-family="Arial, sans-serif" font-size="20" font-weight="700">Preview · no Azure write</text><text x="66" y="751" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">A model plans the inline comment and summary. Review the proposed text before publishing.</text><text x="66" y="782" fill="#52637b" font-family="Arial, sans-serif" font-size="17" font-weight="400">Comment planning is additional model work.</text><rect x="42" y="826" width="1118" height="204" rx="12" fill="#ffffff" stroke="#dce5ef"/><text x="66" y="862" fill="#172b4d" font-family="Arial, sans-serif" font-size="24" font-weight="700">4. Publish when ready</text><text x="66" y="902" fill="#005a9e" font-family="Consolas, monospace" font-size="24" font-weight="700">/pr-comment --publish</text><text x="66" y="942" fill="#176b48" font-family="Arial, sans-serif" font-size="20" font-weight="700">Optional · explicit Azure write</text><text x="66" y="979" fill="#172b4d" font-family="Arial, sans-serif" font-size="20" font-weight="400">The runtime rechecks the PR and publishes the saved preview, skipping existing markers.</text><text x="66" y="1010" fill="#52637b" font-family="Arial, sans-serif" font-size="17" font-weight="400">Shown as a workflow step only. Nothing was published for this demo.</text><text x="42" y="1080" fill="#52637b" font-family="Arial, sans-serif" font-size="17" font-weight="400">Illustrative example / synthetic PR. No live model call or Azure publication.</text></svg>
|
package/docs/releases/v0.1.0.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# OpenCode Azure DevOps PR Review V2 — 0.1.0
|
|
2
|
-
|
|
3
|
-
Review Azure DevOps pull requests in OpenCode, preview the resulting comments,
|
|
4
|
-
and choose when to publish them.
|
|
5
|
-
|
|
6
|
-
## Included
|
|
7
|
-
|
|
8
|
-
- `/pr-setup`: configure your organization, one model and an existing private
|
|
9
|
-
PAT file. Settings stay outside a native package's cache and survive updates.
|
|
10
|
-
- `/pr-check`: check Azure access, source reads and model readiness without
|
|
11
|
-
calling a model.
|
|
12
|
-
- `/pr-quick`: one reviewer per shard covers function and risk. Findings are
|
|
13
|
-
reported, not independently verified.
|
|
14
|
-
- `/pr-review` and `/pr-deep`: separate functional and risk reviews, followed
|
|
15
|
-
by independent verification sessions. `/pr-deep` runs the same review with
|
|
16
|
-
the stronger models configured in `models.deep`.
|
|
17
|
-
- `/pr-comment`: preview the summary and inline comments. Add `--publish` to
|
|
18
|
-
post the saved plan; publication checks the PR head, skips existing markers
|
|
19
|
-
and reads posted comments back.
|
|
20
|
-
- `/pr-stop`: cancel the active command in your conversation.
|
|
21
|
-
- Large-PR sharding, overflow recovery, bounded retries and two concurrent
|
|
22
|
-
comment-planning pages.
|
|
23
|
-
- Private saved reviews and publication records, and Azure proxy/CA settings.
|
|
24
|
-
- The PAT kept alone in an owner-only file (`azure.patFile`), so
|
|
25
|
-
`settings.json` holds no secret.
|
|
26
|
-
|
|
27
|
-
## Installation
|
|
28
|
-
|
|
29
|
-
Install with OpenCode V2's plugin manager:
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.1.0'
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Follow [the quickstart](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.1.0/docs/QUICKSTART.md)
|
|
36
|
-
to create a private PAT file, run `/pr-setup` with one model and your Azure
|
|
37
|
-
organization, then restart the OpenCode service. Review, preview and publication
|
|
38
|
-
are separate explicit commands.
|
|
39
|
-
|
|
40
|
-
The source archive also includes `install.sh` for manual installation into the
|
|
41
|
-
configuration directory used by your OpenCode V2 instance.
|
|
42
|
-
|
|
43
|
-
For an existing AZPR V2 installation, use the documented `--replace` option;
|
|
44
|
-
it preserves settings and adds defaults. Do not enable both installation methods
|
|
45
|
-
in one profile. This release does not require an npm registry package.
|
|
46
|
-
|
|
47
|
-
## Compatibility and evidence
|
|
48
|
-
|
|
49
|
-
- Tested host: `@opencode/cli` **2.1.2**.
|
|
50
|
-
- Tested OS: **Ubuntu 22.04**; the recorded environment uses WSL2.
|
|
51
|
-
- Azure: **Azure DevOps Services**, REST API **7.1**.
|
|
52
|
-
- Native installer: OpenCode's Git package manager. Alternative source installer:
|
|
53
|
-
POSIX `sh` and Python 3 standard library. No plugin build step or npm dependencies.
|
|
54
|
-
|
|
55
|
-
`docs/VALIDATION.md` records the offline tests, real-host tests with fake
|
|
56
|
-
services, and separate live Azure/model runs. Model quality and runtime
|
|
57
|
-
correctness are different claims; test counts do not establish review accuracy.
|
|
58
|
-
|
|
59
|
-
The release includes a real OpenCode terminal demonstration and Azure comment
|
|
60
|
-
read-back recording; see the [demo guide](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.1.0/docs/DEMO.md)
|
|
61
|
-
for the source, environment, edits and limitations.
|
|
62
|
-
|
|
63
|
-
## Before using it with a team
|
|
64
|
-
|
|
65
|
-
Read `docs/ENTERPRISE.md` for data sent to the selected model, PAT permissions,
|
|
66
|
-
private retention, network configuration and publication behavior.
|
|
67
|
-
|
|
68
|
-
Quick findings are not independently verified. Preview generation uses a model
|
|
69
|
-
and can incur cost. A session can make multiple model requests; no fixed cost
|
|
70
|
-
or accuracy is promised. Azure DevOps Server is not supported; operating
|
|
71
|
-
systems other than the tested Linux environment remain unvalidated. The minimum
|
|
72
|
-
recommended PAT scopes and quick-review publication have been confirmed on the
|
|
73
|
-
dedicated Azure test repository; other organizations and repositories still need
|
|
74
|
-
their own acceptance checks.
|
package/docs/releases/v0.2.0.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
# OpenCode Azure DevOps PR Review V2 — 0.2.0
|
|
2
|
-
|
|
3
|
-
A completed review can now preview or publish its comments automatically,
|
|
4
|
-
without another `/pr-comment` command. This is opt-in: existing installations
|
|
5
|
-
keep the manual workflow until you select a setting or command flag.
|
|
6
|
-
|
|
7
|
-
## What changed
|
|
8
|
-
|
|
9
|
-
- `afterReview` selects `none`, `preview` or `publish` separately for `quick`,
|
|
10
|
-
`review` and `deep`. Every mode defaults to `none`.
|
|
11
|
-
- One flag immediately after the PR URL (`--preview`, `--publish` or
|
|
12
|
-
`--no-comment`) overrides that setting for a single review. Mistyped flags
|
|
13
|
-
there produce an error; they do not fall back to automatic publication.
|
|
14
|
-
- A COMPLETE review starts the comment step as its own run, with a STARTED
|
|
15
|
-
notice and receipt. `/pr-stop` cancels it. A stopped review starts no step;
|
|
16
|
-
a review without findings needs no extra planning or model request. A busy
|
|
17
|
-
conversation or PR skips the step and gives the command to run manually.
|
|
18
|
-
- Automatic publication holds individual items containing mentions, images,
|
|
19
|
-
active HTML or script/private-file links in the saved preview. Other items
|
|
20
|
-
are posted and read back. Ordinary links and unambiguous literal code are
|
|
21
|
-
allowed; mentions are checked in code too. Inspect held items before using
|
|
22
|
-
the explicit `/pr-comment <review-id> --publish` command.
|
|
23
|
-
- When every finding is already discussed on the PR, automatic publication
|
|
24
|
-
reports `NOTHING_TO_POST` instead of adding another summary.
|
|
25
|
-
- Quick comments keep their "not independently verified" disclosure;
|
|
26
|
-
severity and incomplete coverage do not block the whole publication.
|
|
27
|
-
- `/pr-check` shows the configured automatic action and posting identity as
|
|
28
|
-
information. Setup errors identify the settings problem without values.
|
|
29
|
-
- The automatic-publication HTML checks read long tag-like text in linear
|
|
30
|
-
time, avoiding the slowdown found during review of this feature.
|
|
31
|
-
|
|
32
|
-
For a one-off preview, substitute your own authorized Azure PR URL:
|
|
33
|
-
|
|
34
|
-
```text
|
|
35
|
-
/pr-review https://dev.azure.com/YOUR_ORGANIZATION/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123 --preview
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Use `--publish` in the same position to request automatic publication, or
|
|
39
|
-
`--no-comment` to suppress a configured automatic action for that run.
|
|
40
|
-
To default to previews, add this to AZPR's settings and restart the service:
|
|
41
|
-
|
|
42
|
-
```json
|
|
43
|
-
{
|
|
44
|
-
"afterReview": {
|
|
45
|
-
"quick": "preview",
|
|
46
|
-
"review": "preview",
|
|
47
|
-
"deep": "preview"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
See [automatic comments](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.0/docs/COMMENTING.md#automatic-comments-after-a-review)
|
|
53
|
-
for the per-item checks, cancellation and publication receipts. Review prompts
|
|
54
|
-
and the verified versus quick review methods are unchanged.
|
|
55
|
-
|
|
56
|
-
## Installation
|
|
57
|
-
|
|
58
|
-
```sh
|
|
59
|
-
opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.0'
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Follow the [quickstart](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.0/docs/QUICKSTART.md)
|
|
63
|
-
for `/pr-setup`, a private PAT file, service restart and your first review.
|
|
64
|
-
The source archive includes `install.sh` for manual installation. Use one
|
|
65
|
-
installation method per OpenCode profile. This is a Git package release; it
|
|
66
|
-
does not publish an npm registry package.
|
|
67
|
-
|
|
68
|
-
## Upgrading from 0.1.0
|
|
69
|
-
|
|
70
|
-
For a native installation, edit the existing AZPR entry in the OpenCode
|
|
71
|
-
configuration's `plugins` list: change
|
|
72
|
-
`github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.1.0` to
|
|
73
|
-
`github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.0`. If the entry is an
|
|
74
|
-
object, change only its `package` value; preserve `options.settingsFile` and
|
|
75
|
-
other options. Keep one AZPR entry, then restart the OpenCode service. Native
|
|
76
|
-
settings remain outside the package cache, and missing `afterReview` values
|
|
77
|
-
default to `none`.
|
|
78
|
-
|
|
79
|
-
For a source installation, extract the new archive and run its installer:
|
|
80
|
-
|
|
81
|
-
```sh
|
|
82
|
-
sh install.sh --config-dir /absolute/path/to/v2-opencode-config --replace
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
This preserves operational settings and adds missing defaults. Keep the PAT
|
|
86
|
-
file and private state directory in place. Neither installation method needs
|
|
87
|
-
you to repeat `/pr-setup` for an already working configuration. For the usual
|
|
88
|
-
managed OpenCode service, restart with `opencode service restart`; if you run
|
|
89
|
-
`opencode serve` yourself, restart that process instead.
|
|
90
|
-
|
|
91
|
-
## Compatibility and release assets
|
|
92
|
-
|
|
93
|
-
The tested target remains OpenCode CLI **2.1.2**, Node.js **22.23.3**, Ubuntu
|
|
94
|
-
**22.04.5** under WSL2, and Azure DevOps Services REST API **7.1**.
|
|
95
|
-
[Validation](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.0/docs/VALIDATION.md)
|
|
96
|
-
separates offline tests, real-host fixtures using fake services, and earlier
|
|
97
|
-
live Azure/model evidence. Release acceptance uses isolated profiles; it does
|
|
98
|
-
not run live models or publish Azure test comments. Azure DevOps Server and
|
|
99
|
-
other operating systems remain unvalidated.
|
|
100
|
-
|
|
101
|
-
Release assets are the source archive
|
|
102
|
-
`opencode-azure-devops-pr-review-v2-0.2.0.tar.gz`, `azpr-live-demo.mp4`, and
|
|
103
|
-
`SHA256SUMS`. Verify downloaded assets with `sha256sum -c SHA256SUMS`.
|
|
104
|
-
The video is the unchanged recording from v0.1.0 on 2026-10-22; it shows the
|
|
105
|
-
manual review, preview and publication workflow, not the new automatic step.
|
|
106
|
-
The [demo guide](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.0/docs/DEMO.md)
|
|
107
|
-
records its source commit, model, edits and limitations.
|
package/docs/releases/v0.2.1.md
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# OpenCode Azure DevOps PR Review V2 — 0.2.1
|
|
2
|
-
|
|
3
|
-
AZPR is now available from the npm registry. This release changes packaging
|
|
4
|
-
and documentation only: the runtime, prompts and settings are the same as in
|
|
5
|
-
0.2.0.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
opencode plugin add opencode-azure-devops-pr-review@0.2.1
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
The same release remains available as a versioned Git package, which needs
|
|
14
|
-
Git but not the npm registry:
|
|
15
|
-
|
|
16
|
-
```sh
|
|
17
|
-
opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.1'
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Add only one of them. Follow the [quickstart](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.1/docs/QUICKSTART.md)
|
|
21
|
-
for `/pr-setup`, a private PAT file, service restart and your first review.
|
|
22
|
-
The source archive includes `install.sh` for manual installation. Use one
|
|
23
|
-
installation method per OpenCode profile.
|
|
24
|
-
|
|
25
|
-
## Upgrading
|
|
26
|
-
|
|
27
|
-
For a native installation, edit the existing AZPR entry in the OpenCode
|
|
28
|
-
configuration's `plugins` list:
|
|
29
|
-
|
|
30
|
-
- To stay on Git, change `#v0.2.0` (or `#v0.1.0`) to `#v0.2.1`.
|
|
31
|
-
- To move to npm, replace the Git specification with
|
|
32
|
-
`opencode-azure-devops-pr-review@0.2.1`.
|
|
33
|
-
|
|
34
|
-
If the entry is an object, change only its `package` value; preserve
|
|
35
|
-
`options.settingsFile` and other options. Keep one AZPR entry, then restart the
|
|
36
|
-
OpenCode service. npm and Git installations read the same external settings, so
|
|
37
|
-
the settings, PAT file and review records stay in place and a working
|
|
38
|
-
configuration needs no new `/pr-setup`. Exact versions stay pinned:
|
|
39
|
-
`opencode plugin update` leaves them unchanged, so change the version yourself
|
|
40
|
-
for later releases.
|
|
41
|
-
|
|
42
|
-
Coming from 0.1.0, you also gain automatic comments, which stay disabled until
|
|
43
|
-
you configure them; see the
|
|
44
|
-
[0.2.0 notes](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.0/docs/releases/v0.2.0.md#upgrading-from-010).
|
|
45
|
-
|
|
46
|
-
For a source installation, extract the new archive and run its installer with
|
|
47
|
-
`--replace`. Only documentation differs from 0.2.0 there, so this is optional.
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
sh install.sh --config-dir /absolute/path/to/v2-opencode-config --replace
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Compatibility and release assets
|
|
54
|
-
|
|
55
|
-
The tested target remains OpenCode CLI **2.1.2**, Node.js **22.23.3**, Ubuntu
|
|
56
|
-
**22.04.5** under WSL2, and Azure DevOps Services REST API **7.1**.
|
|
57
|
-
[Validation](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.1/docs/VALIDATION.md)
|
|
58
|
-
records the release checks. Azure DevOps Server and other operating systems
|
|
59
|
-
remain unvalidated.
|
|
60
|
-
|
|
61
|
-
The npm package is built from this tag with `npm pack` and has no
|
|
62
|
-
dependencies or install scripts. Release assets are the source archive
|
|
63
|
-
`opencode-azure-devops-pr-review-v2-0.2.1.tar.gz` and `SHA256SUMS`; verify
|
|
64
|
-
downloads with `sha256sum -c SHA256SUMS`. The demonstration video stays
|
|
65
|
-
attached to [v0.2.0](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.0).
|
package/docs/releases/v0.2.2.md
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# Azure DevOps PR Review for OpenCode — 0.2.2
|
|
2
|
-
|
|
3
|
-
This release brings the revised README and discovery metadata to npm. It
|
|
4
|
-
explains reviewing Azure DevOps PRs from a URL without maintaining a checkout,
|
|
5
|
-
model choices, separate verification, and comment previews. The runtime,
|
|
6
|
-
prompts, settings and installation behavior are unchanged from 0.2.1.
|
|
7
|
-
|
|
8
|
-
## What changed
|
|
9
|
-
|
|
10
|
-
- The README and quickstart share one first-review path:
|
|
11
|
-
`/pr-review <PR URL> --preview`, with quick review as a lighter alternative.
|
|
12
|
-
- Compatibility explicitly excludes OpenCode 1.x. Detailed reference sections
|
|
13
|
-
have visible navigation targets, and archive limits link to their actual guide.
|
|
14
|
-
- Azure Code Search is described as searching indexed branches; AZPR searches
|
|
15
|
-
the selected commit snapshot. Model and performance claims stay within the
|
|
16
|
-
documented evidence.
|
|
17
|
-
- The package has an updated description and the `opencode-v2` keyword.
|
|
18
|
-
|
|
19
|
-
## Installation
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
opencode plugin add opencode-azure-devops-pr-review@0.2.2
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Alternatively, install the same release from Git:
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.2'
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Add only one of them. Follow the
|
|
32
|
-
[quickstart](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.2/docs/QUICKSTART.md)
|
|
33
|
-
for a private PAT file, `/pr-setup`, a service restart and the first review.
|
|
34
|
-
|
|
35
|
-
## Upgrading
|
|
36
|
-
|
|
37
|
-
Existing 0.2.1 installations do not need an update to receive a runtime fix;
|
|
38
|
-
this is a documentation and metadata release. To update a native installation,
|
|
39
|
-
edit its existing entry in the OpenCode configuration's `plugins` list:
|
|
40
|
-
|
|
41
|
-
- For npm, change the package specification to
|
|
42
|
-
`opencode-azure-devops-pr-review@0.2.2`.
|
|
43
|
-
- For Git, change the tag suffix to `#v0.2.2`.
|
|
44
|
-
|
|
45
|
-
If the entry is an object, change only `package`; preserve `options.settingsFile`
|
|
46
|
-
and any other options. Keep one AZPR entry and restart the OpenCode service.
|
|
47
|
-
External settings, the PAT file and review records remain in place; a working
|
|
48
|
-
configuration needs no new `/pr-setup`. Exact version pins are not advanced by
|
|
49
|
-
`opencode plugin update`.
|
|
50
|
-
|
|
51
|
-
For a source installation, extract the new archive and run its installer with
|
|
52
|
-
`--replace` to retain settings:
|
|
53
|
-
|
|
54
|
-
```sh
|
|
55
|
-
sh install.sh --config-dir /absolute/path/to/v2-opencode-config --replace
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
Coming from 0.1.0, see the
|
|
59
|
-
[0.2.0 upgrade notes](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.0/docs/releases/v0.2.0.md#upgrading-from-010)
|
|
60
|
-
for automatic comments, which remain disabled unless configured or requested.
|
|
61
|
-
|
|
62
|
-
## Compatibility and release assets
|
|
63
|
-
|
|
64
|
-
The tested target remains OpenCode CLI **2.1.2** (V2 plugin API), Node.js
|
|
65
|
-
**22.23.3**, Ubuntu **22.04.5** under WSL2, and Azure DevOps Services REST API
|
|
66
|
-
**7.1**. OpenCode 1.x and Azure DevOps Server are not supported; other operating
|
|
67
|
-
systems remain unvalidated. See the
|
|
68
|
-
[validation record](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.2/docs/VALIDATION.md).
|
|
69
|
-
|
|
70
|
-
The npm package comes from this tag and has no dependencies or install scripts.
|
|
71
|
-
Release assets are `opencode-azure-devops-pr-review-v2-0.2.2.tar.gz` and
|
|
72
|
-
`SHA256SUMS`; verify the source archive with `sha256sum -c SHA256SUMS`. The
|
|
73
|
-
existing demonstration remains attached to
|
|
74
|
-
[v0.2.0](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.0),
|
|
75
|
-
with its original recording context documented in the
|
|
76
|
-
[demo guide](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.2/docs/DEMO.md).
|
package/docs/releases/v0.2.3.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# Azure DevOps PR Review for OpenCode — 0.2.3
|
|
2
|
-
|
|
3
|
-
This release moves the tested host to OpenCode CLI 2.1.4 and fixes three
|
|
4
|
-
behaviors that OpenCode 2.1.3 and later expose: how a refused proxy tunnel is
|
|
5
|
-
reported, how long a silent Azure DevOps call may wait, and how a refused
|
|
6
|
-
background summary affects a failed stage. Prompts, settings and installation
|
|
7
|
-
are unchanged.
|
|
8
|
-
|
|
9
|
-
## What changed
|
|
10
|
-
|
|
11
|
-
- **Proxy refusals are explained again.** OpenCode 2.1.3 and later embed Bun
|
|
12
|
-
1.4.4, which rejects a request with `ERR_PROXY_TUNNEL` when a proxy refuses
|
|
13
|
-
the CONNECT tunnel, where Bun 1.4.2 returned the proxy's answer. AZPR treated
|
|
14
|
-
the rejection as a network error and retried it. It now gives the earlier
|
|
15
|
-
messages and retry rules: a missing proxy password is explained as HTTP 407
|
|
16
|
-
without retries, a blocked destination names the proxy, and a refused tunnel
|
|
17
|
-
never leaves a comment write uncertain.
|
|
18
|
-
- **Azure DevOps calls keep their configured timeout.** The runtime's fetch
|
|
19
|
-
ended a request that received nothing for about six minutes by itself, while
|
|
20
|
-
`azure.callTimeoutSeconds` accepts up to 1,800 seconds. AZPR now switches that
|
|
21
|
-
limit off for its requests, so the configured timeout decides.
|
|
22
|
-
- **Background compaction no longer splits a failed stage.** With OpenCode's
|
|
23
|
-
opt-in `experimental.background_compaction`, the host asks for a summary
|
|
24
|
-
before a reviewer's context is full. AZPR refuses it as before, but the
|
|
25
|
-
refusal also marked the stage as overflowing: a later permanent failure,
|
|
26
|
-
such as an expired provider key, split the shard into new sessions that
|
|
27
|
-
failed the same way, and a failed follow-up discarded the answer it
|
|
28
|
-
followed. Overflow is now read from the failed turn itself.
|
|
29
|
-
- The README states that AZPR is an independent community project, not built
|
|
30
|
-
by or affiliated with the OpenCode team.
|
|
31
|
-
|
|
32
|
-
## Installation
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
opencode plugin add opencode-azure-devops-pr-review@0.2.3
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Alternatively, install the same release from Git:
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.3'
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Add only one of them. Follow the
|
|
45
|
-
[quickstart](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.3/docs/QUICKSTART.md)
|
|
46
|
-
for a private PAT file, `/pr-setup`, a service restart and the first review.
|
|
47
|
-
|
|
48
|
-
## Upgrading
|
|
49
|
-
|
|
50
|
-
Upgrade OpenCode to 2.1.4 first if you can: the receipts of other versions add
|
|
51
|
-
a host notice, and those versions are not validated. Stop the OpenCode service
|
|
52
|
-
and copy its database before upgrading OpenCode, so that you can go back.
|
|
53
|
-
|
|
54
|
-
To update a native installation, edit its existing entry in the OpenCode
|
|
55
|
-
configuration's `plugins` list:
|
|
56
|
-
|
|
57
|
-
- For npm, change the package specification to
|
|
58
|
-
`opencode-azure-devops-pr-review@0.2.3`.
|
|
59
|
-
- For Git, change the tag suffix to `#v0.2.3`.
|
|
60
|
-
|
|
61
|
-
If the entry is an object, change only `package`; preserve `options.settingsFile`
|
|
62
|
-
and any other options. Keep one AZPR entry and restart the OpenCode service.
|
|
63
|
-
External settings, the PAT file and review records remain in place; a working
|
|
64
|
-
configuration needs no new `/pr-setup`. Exact version pins are not advanced by
|
|
65
|
-
`opencode plugin update`.
|
|
66
|
-
|
|
67
|
-
For a source installation, extract the new archive and run its installer with
|
|
68
|
-
`--replace` to retain settings:
|
|
69
|
-
|
|
70
|
-
```sh
|
|
71
|
-
sh install.sh --config-dir /absolute/path/to/v2-opencode-config --replace
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Coming from 0.1.0, see the
|
|
75
|
-
[0.2.0 upgrade notes](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.0/docs/releases/v0.2.0.md#upgrading-from-010)
|
|
76
|
-
for automatic comments, which remain disabled unless configured or requested.
|
|
77
|
-
|
|
78
|
-
## Compatibility and release assets
|
|
79
|
-
|
|
80
|
-
The tested target is OpenCode CLI **2.1.4** (V2 plugin API), Node.js
|
|
81
|
-
**22.23.3**, Ubuntu **22.04.5** under WSL2, and Azure DevOps Services REST API
|
|
82
|
-
**7.1**. OpenCode 1.x and Azure DevOps Server are not supported; other operating
|
|
83
|
-
systems remain unvalidated. See the
|
|
84
|
-
[validation record](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.3/docs/VALIDATION.md),
|
|
85
|
-
including live reviews on OpenCode 2.1.4.
|
|
86
|
-
|
|
87
|
-
The npm package comes from this tag and has no dependencies or install scripts.
|
|
88
|
-
Release assets are `opencode-azure-devops-pr-review-v2-0.2.3.tar.gz` and
|
|
89
|
-
`SHA256SUMS`; verify the source archive with `sha256sum -c SHA256SUMS`. The
|
|
90
|
-
existing demonstration remains attached to
|
|
91
|
-
[v0.2.0](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.0),
|
|
92
|
-
with its original recording context documented in the
|
|
93
|
-
[demo guide](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/blob/v0.2.3/docs/DEMO.md).
|