opencode-azure-devops-pr-review 0.2.1 → 0.2.2

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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.2 — 2026-10-23
4
+
5
+ - The README leads with reviewing Azure DevOps PRs from a URL without a local
6
+ checkout, then explains source lookup, model choices, verification, comment
7
+ control and corporate connection settings with their limits.
8
+ - The README and quickstart use the same first-review workflow:
9
+ `/pr-review <PR URL> --preview`. Quick review remains an explicit lighter
10
+ alternative, with model-request and cost guidance.
11
+ - Compatibility explicitly excludes OpenCode 1.x without implying a separate
12
+ maintained AZPR product line. Detailed references remain folded with visible
13
+ navigation targets, and the archive-limit link points to the relevant guide.
14
+ - The Azure Code Search description correctly distinguishes indexed branches
15
+ from AZPR's searches at a selected commit.
16
+ - The npm package description reflects the URL-based workflow, and the
17
+ `opencode-v2` keyword identifies its plugin API target.
18
+ - No runtime, prompt, settings or installation behavior change.
19
+
3
20
  ## 0.2.1 — 2026-10-23
4
21
 
5
22
  - AZPR is published to the npm registry as `opencode-azure-devops-pr-review`:
package/README.md CHANGED
@@ -1,20 +1,21 @@
1
- # OpenCode Azure DevOps PR Review — V2
1
+ # Azure DevOps PR Review for OpenCode
2
2
 
3
3
  [![CI](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/actions/workflows/ci.yml?query=branch%3Amain)
4
4
  [![npm](https://img.shields.io/npm/v/opencode-azure-devops-pr-review)](https://www.npmjs.com/package/opencode-azure-devops-pr-review)
5
5
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
6
6
  [![Tested with OpenCode 2.1.2](https://img.shields.io/badge/OpenCode-2.1.2%20tested-blue)](docs/VALIDATION.md)
7
7
 
8
- Review Azure DevOps pull requests in OpenCode, with quick and independently
9
- verified review modes, comment previews, and explicit publishing.
8
+ **Review Azure DevOps pull requests from a URL. No checkout required.**
10
9
 
11
- **Bring your configured OpenCode models. Read the review, preview the comments,
12
- and choose when to publish to Azure DevOps.** No MCP server is needed.
10
+ Review across repositories in your configured Azure DevOps organization without
11
+ managing a local clone of each project. AZPR uses your OpenCode models to inspect
12
+ the changes, check findings, and prepare inline comments you can preview before
13
+ publishing. No MCP server or CI pipeline setup is required.
13
14
 
14
15
  [Get started](docs/QUICKSTART.md) · [See the demo](docs/DEMO.md) ·
15
16
  [Team setup and data handling](docs/ENTERPRISE.md) ·
16
17
  [Validation and limitations](docs/VALIDATION.md) ·
17
- [Download v0.2.1](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.1)
18
+ [Download v0.2.2](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.2)
18
19
 
19
20
  [![Real OpenCode review, comment preview and verified publication on a dedicated Azure test PR.](docs/assets/live-review-teaser.gif)](docs/DEMO.md)
20
21
 
@@ -23,6 +24,66 @@ and choose when to publish to Azure DevOps.** No MCP server is needed.
23
24
  or read the [demo and recording details](docs/DEMO.md). Waiting time is shortened;
24
25
  the Azure portion shows an actual REST read-back in a terminal.*
25
26
 
27
+ ## Why AZPR?
28
+
29
+ - **Follow the code beyond the diff.** Reviewers can look up definitions,
30
+ callers and tests using file reads and text search at the selected PR commit,
31
+ without depending on an Azure Code Search index.
32
+ - **Give findings a separate check.** Functional and risk reviewers propose
33
+ findings; independent verifier sessions re-read the source and look for
34
+ counterevidence. Quick mode skips this second check when you want a lighter
35
+ pass.
36
+ - **Choose where to spend model effort.** Assign different OpenCode models to
37
+ functional review, risk review and verification, or use one model for all
38
+ roles. Keep a stronger model profile for selected PRs with `/pr-deep`.
39
+ - **Control what reaches the PR.** Preview the summary and inline comments,
40
+ then publish when ready. The runtime rechecks the PR head, skips comments
41
+ already published by AZPR and reads new comments back. Automatic publication
42
+ is available when you opt in.
43
+ - **Configure the Azure connection for your network.** Set a forward proxy and
44
+ additional CA certificates for AZPR's Azure DevOps requests. Model-provider
45
+ connections remain configured in OpenCode.
46
+
47
+ Content search downloads a bounded repository archive into memory; source
48
+ context is sent through your selected model providers, and review records are
49
+ saved locally. See [content-search limits](docs/AZURE_DEVOPS.md#who-calls-what)
50
+ for archive and file-size bounds, and [team setup and data handling](docs/ENTERPRISE.md)
51
+ for proxy authentication and retention.
52
+
53
+ ## Your first review
54
+
55
+ 1. Install the npm package using OpenCode's plugin manager:
56
+
57
+ ```sh
58
+ opencode plugin add opencode-azure-devops-pr-review@0.2.2
59
+ ```
60
+
61
+ 2. Follow the [quickstart](docs/QUICKSTART.md) to save your PAT in a private
62
+ file and run `/pr-setup` with your organization and one model. Restart the
63
+ OpenCode service to load the settings.
64
+ 3. In one OpenCode conversation, check access, then review and preview:
65
+
66
+ ```text
67
+ /pr-check https://dev.azure.com/YOUR_ORG/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123
68
+ /pr-review https://dev.azure.com/YOUR_ORG/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123 --preview
69
+ ```
70
+
71
+ Replace the sample URL with your PR. Wait for `/pr-check` to report `READY`
72
+ before starting the review; it uses no model. The review runs functional and risk
73
+ reviewers, then separate verification. If the completed review has findings to
74
+ comment on, `--preview` prepares their comments in a separate, cancellable run.
75
+ **Nothing is posted by these commands.** Previewing comments also uses a model.
76
+
77
+ Read the report and preview, then publish from the same conversation:
78
+
79
+ ```text
80
+ /pr-comment REVIEW_ID_FROM_RECEIPT --publish
81
+ ```
82
+
83
+ Use the review ID from the completed receipt. The command posts the saved
84
+ preview as the PAT owner. For a lighter first pass, use
85
+ `/pr-quick <PR URL> --preview`; its findings are not independently verified.
86
+
26
87
  ## Choose a review
27
88
 
28
89
  | Command | Best starting point | What runs |
@@ -32,8 +93,12 @@ the Azure portion shows an actual REST read-back in a terminal.*
32
93
  | `/pr-deep` | Important or risky changes worth a stronger model | The same verified pipeline as `/pr-review`, run with the stronger models you set in `models.deep`; usually slower and costlier. |
33
94
 
34
95
  All three modes use the same Azure comment layout. Quick comments disclose their
35
- method. A separate verifier improves scrutiny; it does not guarantee that a
36
- finding is correct or that every defect was found.
96
+ method. Separate verification adds scrutiny; it does not guarantee correct
97
+ findings or complete defect coverage. Mixing models is a choice about capability
98
+ and cost, not a proven accuracy improvement. See [model configuration](#configuration).
99
+
100
+ <details>
101
+ <summary>Sessions, model requests and cost</summary>
37
102
 
38
103
  For a small PR that fits in one shard and one comment-planning page, quick
39
104
  usually needs one review session plus one planning session; review needs two
@@ -43,37 +108,29 @@ and extra planning pages add work. Previewing comments also uses a model.
43
108
  See [measured runs and their limits](docs/VALIDATION.md) for cost and timing
44
109
  examples, rather than treating a session count as a price guarantee.
45
110
 
46
- ## Your first review
111
+ </details>
47
112
 
48
- Install the package using OpenCode's plugin manager:
113
+ ## Is this the right workflow?
49
114
 
50
- ```sh
51
- opencode plugin add opencode-azure-devops-pr-review@0.2.1
52
- ```
115
+ AZPR fits reviewers who already use OpenCode, review Azure DevOps Services PRs
116
+ on demand, and want to choose their models and inspect comments before posting.
117
+ It combines source retrieval, review stages and publication checks in one plugin.
53
118
 
54
- Follow the [quickstart](docs/QUICKSTART.md) to put your PAT in a private file
55
- and run `/pr-setup` with your organization and one model. Restart OpenCode,
56
- then, in one conversation:
119
+ If you need an unattended review on every PR event, look for a webhook or CI
120
+ integration; AZPR runs when you invoke a command. If your work includes editing
121
+ code or running the project's tests, use a local checkout for that work.
57
122
 
58
- ```text
59
- /pr-check https://dev.azure.com/YOUR_ORG/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123
60
- /pr-quick https://dev.azure.com/YOUR_ORG/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123
61
- /pr-comment REVIEW_ID_FROM_RECEIPT
62
- ```
63
-
64
- Run each command after the previous one finishes. `/pr-check` uses no model;
65
- `/pr-quick` reviews the PR; `/pr-comment` prepares a **preview**. Publication
66
- requires a separate `/pr-comment REVIEW_ID_FROM_RECEIPT --publish` command.
67
- Use the review ID from the completed receipt, not the literal placeholder.
68
- `/pr-quick <PR URL> --preview` prepares the preview right after a COMPLETE
69
- review; [automatic comments](#automatic-comments) can also publish, but only
70
- when you ask for it.
123
+ The [validation record](docs/VALIDATION.md) includes real model/Azure runs, a
124
+ 316-file test PR, isolated OpenCode host checks, and an offline test suite for
125
+ runtime and packaging behavior. It also records missed defects and untested
126
+ environments. The demo shows the workflow; these checks do not establish a
127
+ general review-accuracy score.
71
128
 
72
129
  ## Compatibility
73
130
 
74
131
  | Component | Tested target |
75
132
  | --- | --- |
76
- | OpenCode | **V2 `@opencode/cli` 2.1.2**; V1 plugins use a different API. |
133
+ | OpenCode | **OpenCode CLI 2.1.2** (`@opencode/cli`; V2 plugin API). OpenCode 1.x is not supported. |
77
134
  | Operating system | **Ubuntu 22.04** (validation environment: WSL2). Other operating systems are not yet validated. |
78
135
  | Azure | **Azure DevOps Services**, REST API **7.1**. Azure DevOps Server is not supported by the current URL handling. |
79
136
  | Installation | OpenCode's plugin manager with the npm package or the versioned Git package, or the source installer with POSIX `sh` and Python 3; no plugin build step or npm dependencies. |
@@ -86,6 +143,9 @@ for both quick and verified reviews.
86
143
 
87
144
  ## How reviews work
88
145
 
146
+ <details>
147
+ <summary>Review stages, recovery and saved results</summary>
148
+
89
149
  1. The runtime reads the PR deterministically from Azure DevOps: identity, the
90
150
  latest iteration's source commit and merge base, and the complete
91
151
  changed-file list. Reviewers read the repository through AZPR's own
@@ -133,6 +193,8 @@ survive an OpenCode restart.
133
193
  See [current validation](docs/VALIDATION.md) for what was tested and what was
134
194
  not; earlier runs are kept in [validation history](docs/VALIDATION_HISTORY.md).
135
195
 
196
+ </details>
197
+
136
198
  ## Requirements and installation
137
199
 
138
200
  The plugin has no npm dependencies, build step or provider SDK. It calls the
@@ -143,14 +205,14 @@ Azure DevOps REST API with the runtime's built-in `fetch`.
143
205
  Install the npm package with OpenCode's plugin manager:
144
206
 
145
207
  ```sh
146
- opencode plugin add opencode-azure-devops-pr-review@0.2.1
208
+ opencode plugin add opencode-azure-devops-pr-review@0.2.2
147
209
  ```
148
210
 
149
211
  The same release is also a versioned Git package, which needs Git but not the
150
212
  npm registry:
151
213
 
152
214
  ```sh
153
- opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.1'
215
+ opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.2'
154
216
  ```
155
217
 
156
218
  Add only one of them. Restart OpenCode, then run `/pr-setup` for setup instructions. Native packages
@@ -161,7 +223,7 @@ To select another configuration file, use an absolute path in the host config:
161
223
  ```json
162
224
  {
163
225
  "plugins": [{
164
- "package": "opencode-azure-devops-pr-review@0.2.1",
226
+ "package": "opencode-azure-devops-pr-review@0.2.2",
165
227
  "options": { "settingsFile": "/absolute/path/to/azpr/settings.json" }
166
228
  }]
167
229
  }
@@ -174,22 +236,25 @@ permissions, archive the old installation with its uninstaller, then add the
174
236
  package. Keep the PAT file and private state directory in place.
175
237
 
176
238
  To upgrade a native installation, change the version in its existing `plugins`
177
- entry, for example from `#v0.2.0` to `#v0.2.1` for the Git package. To move a
239
+ entry, for example from `#v0.2.1` to `#v0.2.2` for the Git package. To move a
178
240
  Git installation to npm, replace that entry's Git specification with
179
- `opencode-azure-devops-pr-review@0.2.1`. Both use the same external settings.
241
+ `opencode-azure-devops-pr-review@0.2.2`. Both use the same external settings.
180
242
  Preserve any `options.settingsFile` and other options; keep one AZPR entry.
181
243
  Restart the OpenCode service to load the new version. External settings, the
182
244
  PAT file and review records stay in place. Exact versions stay pinned, so
183
245
  `opencode plugin update` leaves them unchanged. See the
184
- [0.2.1 release notes](docs/releases/v0.2.1.md) for upgrade details and the
246
+ [0.2.2 release notes](docs/releases/v0.2.2.md) for upgrade details and the
185
247
  [0.2.0 release notes](docs/releases/v0.2.0.md) for automatic comments, which
186
248
  remain disabled unless you configure `afterReview` or request them with a
187
249
  review command flag.
188
250
 
189
251
  ### Source archive or checkout
190
252
 
191
- Download the [v0.2.1 source archive](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/archive/refs/tags/v0.2.1.tar.gz)
192
- and extract it, or check out tag `v0.2.1`. The installer needs POSIX `sh` and
253
+ <details>
254
+ <summary>Source installation and replacement</summary>
255
+
256
+ Download the [v0.2.2 source archive](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/archive/refs/tags/v0.2.2.tar.gz)
257
+ and extract it, or check out tag `v0.2.2`. The installer needs POSIX `sh` and
193
258
  Python 3's standard library. From that source directory:
194
259
 
195
260
  ```sh
@@ -199,22 +264,27 @@ sh install.sh --config-dir /absolute/path/to/v2-opencode-config
199
264
  The installer creates `plugins/azpr-v2/` with a generated ESM `package.json`
200
265
  and a `server.js` entry that re-exports `plugin.js`. It never edits the main
201
266
  OpenCode configuration, provider choices or MCP connections, and it refuses
202
- conflicting V1 files, reserved command names and unowned packages. Run
267
+ conflicting legacy files, reserved command names and unowned packages. Run
203
268
  `/pr-setup ... --replace` to configure the generated starter settings, or edit
204
269
  them yourself before restarting OpenCode.
205
270
 
206
- To replace an existing V2 installation (current settings are kept, new defaults
271
+ To replace an existing source installation (current settings are kept, new defaults
207
272
  are added, and a retired `mcp` section is moved into `azure`):
208
273
 
209
274
  ```sh
210
275
  sh install.sh --config-dir /absolute/path/to/v2-opencode-config --replace
211
276
  ```
212
277
 
278
+ </details>
279
+
213
280
  ### Manual copying without Git
214
281
 
215
282
  Keep these relative paths under one source directory, then run its installer.
216
283
  These **31 files** include the runtime and its license:
217
284
 
285
+ <details>
286
+ <summary>Show the required files</summary>
287
+
218
288
  ```text
219
289
  install.sh
220
290
  LICENSE
@@ -252,6 +322,8 @@ src/prompts/comment-plan.md
252
322
  README, `docs/`, the changelog, the settings schema and `uninstall.sh` are optional.
253
323
  Keep `LICENSE` with copied or redistributed packages.
254
324
 
325
+ </details>
326
+
255
327
  ## Configuration
256
328
 
257
329
  Run `/pr-setup` to see the active settings path. Native packages use the
@@ -311,6 +383,11 @@ never blocks `/pr-review`. Comment planning uses the review's risk model
311
383
  A role's focus orders its attention and is not a filter: every reviewer files
312
384
  every concrete defect it finds, in any area, as a finding.
313
385
 
386
+ ### All settings and defaults
387
+
388
+ <details>
389
+ <summary>Show the settings reference</summary>
390
+
314
391
  | Setting | Default and meaning |
315
392
  | --- | --- |
316
393
  | `enabled` | `true`; `false` registers nothing. |
@@ -346,6 +423,8 @@ into `azure`). There is deliberately no per-stage step cap; see the
346
423
  (`workflow.stageIdleSeconds`) is not one: it stops only a stage that stopped
347
424
  working.
348
425
 
426
+ </details>
427
+
349
428
  ### Azure DevOps access
350
429
 
351
430
  AZPR talks to the Azure DevOps Services REST API itself (api-version 7.1). Create
@@ -554,8 +633,8 @@ and a loopback fake Azure DevOps REST service in disposable directories under
554
633
  Uninstall without `--apply` previews; `--apply` archives only this package under
555
634
  `azpr-v2-backups` and leaves the private state directory for you to delete.
556
635
  For a native installation, remove the entry you added, for example
557
- `opencode plugin remove opencode-azure-devops-pr-review@0.2.1` or
558
- `opencode plugin remove 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.1'`;
636
+ `opencode plugin remove opencode-azure-devops-pr-review@0.2.2` or
637
+ `opencode plugin remove 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.2'`;
559
638
  the external settings, PAT file and private review state remain available.
560
639
 
561
640
  [Architecture](docs/ARCHITECTURE.md), [commenting](docs/COMMENTING.md),
@@ -568,7 +647,7 @@ or personal model selections.
568
647
  ## License and releases
569
648
 
570
649
  [MIT](LICENSE), copyright 2026 WTLAIB. See the [changelog](CHANGELOG.md) for the
571
- release scope, [v0.2.1](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.1)
650
+ release scope, [v0.2.2](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.2)
572
651
  for downloads, the [npm package](https://www.npmjs.com/package/opencode-azure-devops-pr-review),
573
652
  [v0.2.0](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/releases/tag/v0.2.0)
574
653
  for the recorded demonstration, and [releasing](docs/RELEASING.md) for the
@@ -148,8 +148,10 @@ but AZPR accepts only Azure DevOps Services URLs (`dev.azure.com/<org>` and
148
148
  (at most `azure.archiveMegabytes`, 100 MB by default) and searches it in memory; files over 2 MB, binary files
149
149
  and anything beyond 256 MB of text are not searched, and ZIP64 or
150
150
  encrypted archives make the tool answer that search is unavailable. Azure
151
- DevOps Code Search is not used: it indexes only the default branch, not a
152
- PR's source commit;
151
+ DevOps Code Search is not used: it searches
152
+ [indexed branches](https://learn.microsoft.com/en-us/azure/devops/project/search/functional-code-search?view=azure-devops)
153
+ rather than an arbitrary commit; AZPR searches the repository snapshot at
154
+ the selected commit;
153
155
  - `azpr_find_files` — repository paths by name or glob, from one recursive
154
156
  listing per commit and folder (read once per run); names only;
155
157
  - `azpr_list_files` — one folder's entries (optionally recursive), at most
@@ -5,9 +5,9 @@ Use a small, active Azure DevOps Services PR for the first run.
5
5
 
6
6
  ## 1. Check the prerequisites
7
7
 
8
- - OpenCode **V2** (`@opencode/cli`), tested with **2.1.2** on **Ubuntu
8
+ - **OpenCode CLI 2.1.2** (`@opencode/cli`, V2 plugin API), tested on **Ubuntu
9
9
  22.04.5 LTS (WSL2)**. Other host versions and operating systems are not
10
- validated; see [validation](VALIDATION.md). This is not a V1 plugin.
10
+ validated; see [validation](VALIDATION.md). OpenCode 1.x is not supported.
11
11
  - An authenticated OpenCode model with tool support. Copy its exact
12
12
  `provider/model` ID from your host's model selection or `opencode models`.
13
13
  AZPR uses your existing provider account.
@@ -24,15 +24,15 @@ Check the host version:
24
24
  opencode --version
25
25
  ```
26
26
 
27
- ## 2. Install v0.2.1
27
+ ## 2. Install v0.2.2
28
28
 
29
- Already using an earlier version? Follow the [upgrade instructions](releases/v0.2.1.md#upgrading)
29
+ Already using an earlier version? Follow the [upgrade instructions](releases/v0.2.2.md#upgrading)
30
30
  to preserve your current configuration and use one AZPR installation.
31
31
 
32
32
  In your terminal:
33
33
 
34
34
  ```sh
35
- opencode plugin add opencode-azure-devops-pr-review@0.2.1
35
+ opencode plugin add opencode-azure-devops-pr-review@0.2.2
36
36
  ```
37
37
 
38
38
  Restart OpenCode and open an ordinary conversation. This is the host's native
@@ -40,7 +40,7 @@ package installation; no npm account or separate build is needed. The
40
40
  plugin exposes `/pr-setup` even before its review configuration exists.
41
41
 
42
42
  To install the same release from Git instead of the npm registry, use
43
- `opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.1'`.
43
+ `opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.2'`.
44
44
  Add only one of the two.
45
45
 
46
46
  For an existing source installation, keep using `install.sh --replace`, or
@@ -48,7 +48,7 @@ follow the migration notes in [installation](../README.md#native-package-npm-or-
48
48
  Do not load both copies in the same OpenCode profile.
49
49
 
50
50
  Prefer a source archive? Download and extract the
51
- [v0.2.1 archive](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/archive/refs/tags/v0.2.1.tar.gz),
51
+ [v0.2.2 archive](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/archive/refs/tags/v0.2.2.tar.gz),
52
52
  then run `sh install.sh --config-dir /absolute/path/to/your/opencode-config`
53
53
  inside it. That directory must be the one your OpenCode actually loads. The
54
54
  source installer creates starter settings; add `--replace` to the setup
@@ -113,8 +113,9 @@ If you run `opencode serve` yourself, restart that process instead.
113
113
  If your network needs a proxy or company CA, configure it in that settings file
114
114
  as described in [enterprise setup](ENTERPRISE.md), then restart. Leave
115
115
  `shell: "deny"` and TLS verification enabled. See
116
- [all settings](../README.md#configuration) for output language, model variants
117
- and separate models for each role.
116
+ [all settings](../README.md#all-settings-and-defaults) for output language and
117
+ other options, and [model configuration](../README.md#configuration) for model
118
+ variants and separate models for each role.
118
119
 
119
120
  ## 4. Check access without a model request
120
121
 
@@ -137,33 +138,38 @@ host's own permission rules control where native read tools can read; reviews
137
138
  remain available. The tested OpenCode 2.1.2 host has that hook. `READY` is an
138
139
  access check, not a security audit or an approval of the PR.
139
140
 
140
- ## 5. Run a quick review, then preview its comments
141
+ ## 5. Run a review and preview its comments
141
142
 
142
143
  ```text
143
- /pr-quick https://dev.azure.com/YOUR_ORGANIZATION/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123
144
+ /pr-review https://dev.azure.com/YOUR_ORGANIZATION/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123 --preview
144
145
  ```
145
146
 
146
- This starts model work. Follow the progress notices and wait for the final
147
- receipt. Use its eight-character review ID in the **same conversation** below
148
- (`1a2b3c4d` is an example):
149
-
150
- ```text
151
- /pr-comment 1a2b3c4d
152
- ```
153
-
154
- This runs comment planning and saves a preview; **it does not post to Azure**.
155
- Inspect the proposed summary, inline comments and skipped findings. A quick
156
- review's findings are `REPORTED`, with `verification none`; `COMPLETE` can
157
- still have incomplete coverage. Read the coverage and limitations before
158
- deciding what to publish. A review that is `PARTIAL` or `STALE` cannot be
159
- commented on; resolve the cause and run a new review.
160
-
161
- For a small PR, quick review commonly uses one review session plus one comment
162
- planning session. **A session is not a single model request**: tool reads,
163
- corrections, retries, more shards or planning pages add requests and cost.
164
- Refreshing a preview with `/pr-comment` runs planning again. Use the displayed
165
- `/pr-stop <run-id>` to cancel an active command; no cost cap is configured by
166
- default.
147
+ This starts functional and risk reviewers, followed by separate verification.
148
+ The starter setup uses the same model in separate sessions; you can assign
149
+ models per role later. For a lighter pass, use `/pr-quick <PR URL> --preview`
150
+ instead: it runs one reviewer per shard without independent verification.
151
+
152
+ Follow the progress notices and wait for the review receipt. If the COMPLETE
153
+ review has findings to comment on, `--preview` starts a separate comment run
154
+ that saves a preview; wait for its receipt too. **Neither command posts to
155
+ Azure**, even if your settings normally enable automatic publication. A review
156
+ with no findings to comment on produces a notice without running a planner.
157
+ A review that is `PARTIAL` or `STALE` cannot be commented on; resolve the cause
158
+ and run a new review.
159
+
160
+ Inspect the report, proposed summary, inline comments and skipped findings.
161
+ Check coverage and limitations: COMPLETE does not mean every file was reviewed
162
+ or every finding confirmed. Quick findings are `REPORTED`, with `verification
163
+ none`. Keep the review's eight-character ID for publication in the **same
164
+ conversation** (`1a2b3c4d` below is an example).
165
+
166
+ For a small PR, `/pr-review` commonly uses two reviewer sessions, a verifier
167
+ session and a comment-planning session; `/pr-quick` commonly uses one review
168
+ session plus comment planning. **A session is not a single model request**:
169
+ tool reads, corrections, retries, more shards or planning pages add requests
170
+ and cost. Refreshing a preview with `/pr-comment <review-id>` runs planning
171
+ again. Use the displayed `/pr-stop <run-id>` to cancel an active command; no
172
+ cost cap is configured by default.
167
173
 
168
174
  ## Optional: publish after inspecting the preview
169
175
 
@@ -174,16 +180,14 @@ default.
174
180
  This explicit command posts the saved preview through your PAT after checking
175
181
  the PR is active and its source commit is unchanged. Existing markers are
176
182
  skipped. Check the publication receipt for failures or incomplete read-back.
177
- If no preview exists, this command plans before publishing. To get the preview
178
- without typing `/pr-comment`, add `--preview` right after the PR URL of the
179
- review command; [automatic comments](COMMENTING.md#automatic-comments-after-a-review)
180
- explains `afterReview` and automatic publication.
181
-
182
- For important changes, use `/pr-review` to run two reviewer roles followed by
183
- an independent verification session. The starter setup uses the same model in
184
- separate sessions; you can assign different models later. `/pr-deep` runs the
185
- same review with the models of `models.deep`, so put a stronger (usually slower
186
- and costlier) model in all three deep slots and keep it for the changes that
187
- justify it; with the review's models it would only repeat `/pr-review`, and
188
- `/pr-check` warns about that. Both modes still produce AI findings that require
189
- human judgment; see [commands](../README.md#commands).
183
+ If no preview exists, this command plans before publishing; use
184
+ `/pr-comment <review-id>` to prepare and inspect a preview first. See
185
+ [automatic comments](COMMENTING.md#automatic-comments-after-a-review) for
186
+ `afterReview` and the flags that override it for one review.
187
+
188
+ For important changes, `/pr-deep` runs the same review as `/pr-review` with
189
+ the models of `models.deep`. Put stronger (usually slower and costlier) models
190
+ in all three deep slots and keep it for changes that justify the cost; with
191
+ the review's models it would only repeat `/pr-review`, and `/pr-check` warns
192
+ about that. All modes produce AI findings that require human judgment; see
193
+ [commands](../README.md#commands).
@@ -1,12 +1,36 @@
1
1
  # Validation
2
2
 
3
3
  This page records validation of the Azure DevOps REST implementation and the
4
- 0.1.0, 0.2.0 and 0.2.1 distributions. Host integration, provider
4
+ 0.1.0, 0.2.0, 0.2.1 and 0.2.2 distributions. Host integration, provider
5
5
  admission, source fidelity, model quality and publication are separate claims; a
6
6
  passing fixture establishes only the first. Earlier revisions and their live
7
7
  acceptance runs, including the MCP-based runs, are preserved in
8
8
  [validation history](VALIDATION_HISTORY.md).
9
9
 
10
+ ## 0.2.2 release acceptance (2026-10-23)
11
+
12
+ Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.2.
13
+ This release updates documentation and package metadata. The runtime, prompts,
14
+ settings and installers are unchanged from 0.2.1.
15
+
16
+ - `npm run check` and **392 offline tests** passed.
17
+ - All four real-host fixtures passed with isolated profiles and fake model
18
+ and Azure services: fresh source installation, replacement installation,
19
+ native packed package installation and comment scale. The native fixture
20
+ covers first-run setup, default external settings and `options.settingsFile`.
21
+ The scale fixture used eight planning sessions with at most two in flight;
22
+ its largest provider request was 33,479 characters.
23
+ - `npm pack --dry-run --json` lists **69 files**, including the entry, runtime,
24
+ prompts, configuration example and schema, license and the new release notes.
25
+ It excludes tests, private settings and `.local/` records.
26
+ - The release notes use absolute HTTPS links. Current installation commands,
27
+ local documentation links and anchors were checked, and the existing
28
+ demonstration remains linked to its original v0.2.0 release.
29
+ - These fixtures make no paid-model request or real Azure publication. Public
30
+ Git installation, archive acceptance, and post-publication registry integrity
31
+ and native installation results are not included in this pre-publication
32
+ record; they are recorded separately under the [releasing guide](RELEASING.md).
33
+
10
34
  ## 0.2.1 release acceptance (2026-10-23)
11
35
 
12
36
  Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.2.
@@ -0,0 +1,76 @@
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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "opencode-azure-devops-pr-review",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
- "description": "Azure DevOps PR reviews in OpenCode V2 with quick and verified modes, comment previews, and explicit publishing",
5
+ "description": "Azure DevOps PR reviews from a URL in OpenCode, with no checkout, configurable models, separate verification, and comment previews",
6
6
  "scripts": {
7
7
  "test": "node --test tests/*.test.mjs",
8
8
  "check": "node --check src/session.mjs && node --check src/runtime.mjs && node --check src/comment-data.mjs && node --check src/comment-work.mjs && node --check src/comments.mjs && node --check src/config.mjs && node --check src/output.mjs && node --check src/diagnostics.mjs && node --check src/attribution.mjs && node --check src/host.mjs && node --check src/tool-queue.mjs && node --check src/azure.mjs && node --check src/diff.mjs && node --check src/search.mjs && node --check src/review-tools.mjs && node --check src/review-work.mjs && node --check src/store.mjs && node --check src/plugin.js && node --check src/setup.mjs && node --check server.js && sh -n install.sh && sh -n uninstall.sh"
@@ -21,6 +21,7 @@
21
21
  "keywords": [
22
22
  "opencode",
23
23
  "opencode-plugin",
24
+ "opencode-v2",
24
25
  "azure-devops",
25
26
  "code-review",
26
27
  "pull-request",