opencode-azure-devops-pr-review 0.2.1 → 0.2.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/AGENTS.md +6 -3
- package/CHANGELOG.md +37 -0
- package/CONTRIBUTING.md +4 -3
- package/README.md +130 -45
- package/docs/ARCHITECTURE.md +11 -5
- package/docs/AZURE_DEVOPS.md +7 -2
- package/docs/DEBUGGING.md +7 -6
- package/docs/ENTERPRISE.md +1 -1
- package/docs/QUICKSTART.md +50 -46
- package/docs/RELEASING.md +2 -2
- package/docs/ROADMAP.md +5 -3
- package/docs/VALIDATION.md +148 -6
- package/docs/releases/v0.2.2.md +76 -0
- package/docs/releases/v0.2.3.md +93 -0
- package/install.sh +1 -1
- package/package.json +3 -2
- package/src/azure.mjs +15 -6
- package/src/host.mjs +9 -8
- package/src/runtime.mjs +7 -6
- package/src/session.mjs +10 -3
package/docs/QUICKSTART.md
CHANGED
|
@@ -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 **
|
|
8
|
+
- **OpenCode CLI 2.1.4** (`@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).
|
|
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.
|
|
27
|
+
## 2. Install v0.2.3
|
|
28
28
|
|
|
29
|
-
Already using an earlier version? Follow the [upgrade instructions](releases/v0.2.
|
|
29
|
+
Already using an earlier version? Follow the [upgrade instructions](releases/v0.2.3.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.
|
|
35
|
+
opencode plugin add opencode-azure-devops-pr-review@0.2.3
|
|
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.
|
|
43
|
+
`opencode plugin add 'github:WTLAIB/opencode-azure-devops-pr-review-v2#v0.2.3'`.
|
|
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.
|
|
51
|
+
[v0.2.3 archive](https://github.com/WTLAIB/opencode-azure-devops-pr-review-v2/archive/refs/tags/v0.2.3.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#
|
|
117
|
-
and
|
|
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
|
|
|
@@ -134,36 +135,41 @@ row says whether `/pr-deep` is set up (see below).
|
|
|
134
135
|
|
|
135
136
|
On a host without `permission.hook`, **Project boundary WARNING** means the
|
|
136
137
|
host's own permission rules control where native read tools can read; reviews
|
|
137
|
-
remain available. The tested OpenCode 2.1.
|
|
138
|
+
remain available. The tested OpenCode 2.1.4 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
|
|
141
|
+
## 5. Run a review and preview its comments
|
|
141
142
|
|
|
142
143
|
```text
|
|
143
|
-
/pr-
|
|
144
|
+
/pr-review https://dev.azure.com/YOUR_ORGANIZATION/YOUR_PROJECT/_git/YOUR_REPO/pullrequest/123 --preview
|
|
144
145
|
```
|
|
145
146
|
|
|
146
|
-
This starts
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
review
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
For important changes,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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).
|
package/docs/RELEASING.md
CHANGED
|
@@ -11,8 +11,8 @@ source tree and contain the same runtime.
|
|
|
11
11
|
and download links to that version.
|
|
12
12
|
2. Run `npm run check` and `npm test`. Follow `AGENTS.md` for required host
|
|
13
13
|
checks. Release validation includes fresh and replacement source installs,
|
|
14
|
-
`host-v2-smoke.mjs --native`,
|
|
15
|
-
documented host. Keep simulated services and live model/Azure results distinct.
|
|
14
|
+
`host-v2-smoke.mjs --native`, `host-v2-comment-scale.mjs` and
|
|
15
|
+
`host-v2-background-compaction.mjs` on the exact documented host. Keep simulated services and live model/Azure results distinct.
|
|
16
16
|
3. Inspect `npm pack --dry-run --json`: the entry, runtime modules, prompts,
|
|
17
17
|
configuration example and license must be present; private settings, `.local/`,
|
|
18
18
|
credentials, diagnostics and temporary recordings must be absent. The native
|
package/docs/ROADMAP.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Roadmap
|
|
2
2
|
|
|
3
|
-
Tested with OpenCode CLI 2.1.
|
|
3
|
+
Tested with OpenCode CLI 2.1.4, the Azure DevOps Services REST API
|
|
4
4
|
(api-version 7.1) and Ubuntu 22.04. [Current validation](VALIDATION.md) records what this revision was tested
|
|
5
5
|
with; [validation history](VALIDATION_HISTORY.md) keeps earlier results.
|
|
6
6
|
|
|
@@ -42,8 +42,10 @@ with; [validation history](VALIDATION_HISTORY.md) keeps earlier results.
|
|
|
42
42
|
is STALE. Publication rechecks the head before writing.
|
|
43
43
|
- **Sharded reviews.** Initial reviews run per file shard with disjoint finding-ID
|
|
44
44
|
ranges; verification runs per finding shard; parallelism is bounded.
|
|
45
|
-
- **Context overflow is recovered.** A
|
|
46
|
-
|
|
45
|
+
- **Context overflow is recovered.** A compaction the host attempts in a
|
|
46
|
+
reviewer's turn is refused, which ends the turn as overflow, and the shard is
|
|
47
|
+
split and rerun (validated on the real host). A refused background summary
|
|
48
|
+
(`experimental.background_compaction`) leaves the turn's own failure to decide.
|
|
47
49
|
- **Correction turns.** Answers that break the output contract are corrected in
|
|
48
50
|
the same session (`workflow.repairAttempts`); remaining problems degrade per
|
|
49
51
|
item (UNREVIEWED, NEEDS_INFO, skipped comments) instead of failing the review.
|
package/docs/VALIDATION.md
CHANGED
|
@@ -1,12 +1,65 @@
|
|
|
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.
|
|
4
|
+
0.1.0, 0.2.0, 0.2.1, 0.2.2 and 0.2.3 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.3 release acceptance (2026-10-24)
|
|
11
|
+
|
|
12
|
+
Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.4.
|
|
13
|
+
This release carries the OpenCode 2.1.4 changes recorded
|
|
14
|
+
[below](#opencode-214-the-tested-host-2026-10-24): the refused-tunnel mapping,
|
|
15
|
+
the Azure DevOps call timeout and the overflow classification after a refused
|
|
16
|
+
background summary. Prompts, settings and installers are unchanged from 0.2.2.
|
|
17
|
+
|
|
18
|
+
- `npm run check` and **394 offline tests** passed.
|
|
19
|
+
- All five real-host fixture runs passed with isolated profiles and fake model
|
|
20
|
+
and Azure services: fresh source installation, replacement installation,
|
|
21
|
+
native packed package installation, comment scale, and background
|
|
22
|
+
compaction followed by a permanent failure. The fresh and native runs
|
|
23
|
+
include the authenticating proxy, the untrusted certificate and the 407. The
|
|
24
|
+
scale fixture split the overflowing shard and used eight planning sessions
|
|
25
|
+
with at most two in flight; its largest provider request was 33,419
|
|
26
|
+
characters. The background-compaction fixture ran one functional session,
|
|
27
|
+
classified permanent.
|
|
28
|
+
- `npm pack --dry-run --json` lists **70 files** (about 882 KB), including the
|
|
29
|
+
entry, runtime, prompts, configuration example and schema, license and the
|
|
30
|
+
new release notes. It excludes tests, private settings and `.local/` records.
|
|
31
|
+
- The release notes use absolute HTTPS links; the relative links and anchors
|
|
32
|
+
of the README, quickstart, changelog and the changed guides resolve.
|
|
33
|
+
- These fixtures make no paid-model request or real Azure publication. The
|
|
34
|
+
live reviews on 2.1.4 preceded the call-timeout and background-summary
|
|
35
|
+
changes. Public Git installation, archive acceptance, and post-publication
|
|
36
|
+
registry integrity and native installation are checked on the pushed commit
|
|
37
|
+
and the published package as the [releasing guide](RELEASING.md) describes.
|
|
38
|
+
|
|
39
|
+
## 0.2.2 release acceptance (2026-10-23)
|
|
40
|
+
|
|
41
|
+
Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.2.
|
|
42
|
+
This release updates documentation and package metadata. The runtime, prompts,
|
|
43
|
+
settings and installers are unchanged from 0.2.1.
|
|
44
|
+
|
|
45
|
+
- `npm run check` and **392 offline tests** passed.
|
|
46
|
+
- All four real-host fixtures passed with isolated profiles and fake model
|
|
47
|
+
and Azure services: fresh source installation, replacement installation,
|
|
48
|
+
native packed package installation and comment scale. The native fixture
|
|
49
|
+
covers first-run setup, default external settings and `options.settingsFile`.
|
|
50
|
+
The scale fixture used eight planning sessions with at most two in flight;
|
|
51
|
+
its largest provider request was 33,479 characters.
|
|
52
|
+
- `npm pack --dry-run --json` lists **69 files**, including the entry, runtime,
|
|
53
|
+
prompts, configuration example and schema, license and the new release notes.
|
|
54
|
+
It excludes tests, private settings and `.local/` records.
|
|
55
|
+
- The release notes use absolute HTTPS links. Current installation commands,
|
|
56
|
+
local documentation links and anchors were checked, and the existing
|
|
57
|
+
demonstration remains linked to its original v0.2.0 release.
|
|
58
|
+
- These fixtures make no paid-model request or real Azure publication. Public
|
|
59
|
+
Git installation, archive acceptance, and post-publication registry integrity
|
|
60
|
+
and native installation results are not included in this pre-publication
|
|
61
|
+
record; they are recorded separately under the [releasing guide](RELEASING.md).
|
|
62
|
+
|
|
10
63
|
## 0.2.1 release acceptance (2026-10-23)
|
|
11
64
|
|
|
12
65
|
Environment: Ubuntu 22.04.5 under WSL2, Node 22.23.3 and OpenCode CLI 2.1.2.
|
|
@@ -414,8 +467,9 @@ acceptance above for the subsequent native package and recorded live run.
|
|
|
414
467
|
Ubuntu 22.04.5 LTS (WSL2, kernel 6.18), Node 22.23.3, OpenCode CLI 2.0.22,
|
|
415
468
|
Azure DevOps Services REST api-version 7.1. Date: 2026-10-10. From
|
|
416
469
|
2026-10-17 the tested host was OpenCode CLI 2.0.32
|
|
417
|
-
([below](#opencode-2032-2026-10-17))
|
|
418
|
-
([below](#opencode-212-
|
|
470
|
+
([below](#opencode-2032-2026-10-17)), from 2026-10-22 2.1.2
|
|
471
|
+
([below](#opencode-212-2026-10-22)); since 2026-10-24 it is 2.1.4
|
|
472
|
+
([below](#opencode-214-the-tested-host-2026-10-24)).
|
|
419
473
|
|
|
420
474
|
## Offline tests
|
|
421
475
|
|
|
@@ -554,6 +608,19 @@ provider's own text, classified as permanent, and, end to end, a 429 quota
|
|
|
554
608
|
failure that starts no second session and says why in the receipt; and the
|
|
555
609
|
tested host version. Removing the quota rule from a copy of the code made
|
|
556
610
|
these tests fail.
|
|
611
|
+
The move to OpenCode 2.1.4 (2026-10-24) adds tests for a proxy that refuses
|
|
612
|
+
the CONNECT tunnel as Bun 1.4.4 reports it, a rejection with
|
|
613
|
+
`ERR_PROXY_TUNNEL` and the proxy's status: 407, 403 and 502 keep the messages
|
|
614
|
+
and retry rules of the answers Bun 1.4.2 returned, and a refused tunnel never
|
|
615
|
+
makes a write uncertain. Removing the mapping, the not-sent code or the
|
|
616
|
+
not-forwarded flag from a copy of the code made these tests fail. Every Azure
|
|
617
|
+
DevOps request now also asks the runtime for no idle limit of its own
|
|
618
|
+
(`timeout: false`), so `azure.callTimeoutSeconds` alone ends a silent call;
|
|
619
|
+
removing the option made its test fail. A refused background summary no longer
|
|
620
|
+
marks a stage as overflow: tests cover it followed by an HTTP 401 in the first
|
|
621
|
+
turn and in a follow-up (permanent, no split, the earlier answer stands) and a
|
|
622
|
+
failed turn with and without the host's compaction message. The previous code
|
|
623
|
+
failed them.
|
|
557
624
|
|
|
558
625
|
## REST API version check
|
|
559
626
|
|
|
@@ -607,10 +674,85 @@ rule so the offline runtime tests catch a regression.
|
|
|
607
674
|
| Largest provider request | 31,136 characters (27,185 before the duplicate rules and the diff and search tools) |
|
|
608
675
|
| REST calls | 74 |
|
|
609
676
|
|
|
610
|
-
## OpenCode 2.1.
|
|
677
|
+
## OpenCode 2.1.4, the tested host (2026-10-24)
|
|
611
678
|
|
|
612
|
-
Since 2026-10-
|
|
613
|
-
|
|
679
|
+
Since 2026-10-24 the tested host is OpenCode CLI 2.1.4 (`TESTED_HOST_VERSION`;
|
|
680
|
+
CI runs the exact-host fixtures with it). 2.1.3 was not tested on its own.
|
|
681
|
+
Reviewing the 137 commits from `v2.1.2` to `v2.1.4` of the OpenCode source and
|
|
682
|
+
running the fixtures found one change AZPR had to absorb, in the proxy
|
|
683
|
+
behaviour of the embedded runtime:
|
|
684
|
+
|
|
685
|
+
| Area | 2.1.2 → 2.1.4 |
|
|
686
|
+
| --- | --- |
|
|
687
|
+
| Plugin context | Every method AZPR calls is unchanged; the plugin package changed only its types. |
|
|
688
|
+
| Hooks AZPR uses | `prompt`, `context`, `model.request` (kinds `primary`, `compaction`, `generate` and `title`), `retry`, `permission.evaluate` and the tool hooks keep their shapes, as do the token counts on assistant messages. |
|
|
689
|
+
| Host constants | The continuation text, the streamed event names and the permission defaults are unchanged. |
|
|
690
|
+
| Runtime | The embedded Bun moved from 1.4.2 to 1.4.4. When a proxy refuses the CONNECT tunnel, for example with HTTP 407, `fetch` now rejects with `ERR_PROXY_TUNNEL` and the proxy's status instead of returning the proxy's answer, and it resets the proxy connection. AZPR maps the rejection to the same proxy messages and retry rules as before, and a refused tunnel never makes a write uncertain. A refused connection is now `ECONNREFUSED` rather than `ConnectionRefused`; AZPR already recognized both. |
|
|
691
|
+
| Compaction | `experimental.background_compaction` (off by default) prepares summaries through the same `compaction` request, which AZPR refuses for private reviewers before anything is sent; the turn goes on. A compaction the host attempts in the turn opens its message first and ends the turn, so overflow is now read from the failed turn's messages (see below). More provider context-overflow errors now reach AZPR as compaction attempts and therefore split the shard. |
|
|
692
|
+
| Models | With a ChatGPT sign-in, the OpenAI context caps moved into a built-in plugin with the same input limits (272,000 tokens; 500,000 for gpt-6.1-sol). A session without its own model now uses its agent's model; AZPR always sets both. |
|
|
693
|
+
| New tools | The experimental TUI terminal tools and client-hosted MCP tools are outside the private roles' allowlist, so reviewers neither see nor run them. |
|
|
694
|
+
|
|
695
|
+
- Exact-host fixtures with 2.1.4 installed into a disposable prefix: with only
|
|
696
|
+
the tested version changed, the fresh and native runs failed in the proxy
|
|
697
|
+
step. The 407 check received `ERR_PROXY_TUNNEL`, AZPR retried it as a
|
|
698
|
+
network error, and the fixture proxy stopped on the reset connection; the
|
|
699
|
+
replacement and comment-scale runs passed. With the mapping and a fixture
|
|
700
|
+
proxy that tolerates a reset, all four passed: fresh, replacement, native
|
|
701
|
+
and comment scale.
|
|
702
|
+
- An external review of this revision found that a refused background summary
|
|
703
|
+
still marked its stage as overflow. On the exact host with background
|
|
704
|
+
compaction on, a functional reviewer whose first response passed the
|
|
705
|
+
background threshold and whose next request failed with HTTP 401 was split
|
|
706
|
+
into new sessions that failed the same way: 7 functional sessions for 4
|
|
707
|
+
files. Overflow is now read from the failed turn's messages. The new
|
|
708
|
+
`host-v2-background-compaction.mjs` fixture passes with one functional
|
|
709
|
+
session classified permanent and fails with the previous code; the other
|
|
710
|
+
four fixtures still pass, including the refused foreground compaction and
|
|
711
|
+
split at scale, whose failed turn holds the host's compaction message (still
|
|
712
|
+
`running` when the turn ended).
|
|
713
|
+
- A probe in each runtime (`BUN_BE_BUN=1 opencode`) showed the difference: for
|
|
714
|
+
407, 403 and 502 answers to CONNECT, Bun 1.4.2 resolves with that status and
|
|
715
|
+
Bun 1.4.4 rejects with `ERR_PROXY_TUNNEL` carrying it; a proxy that closes
|
|
716
|
+
without an answer gives ECONNRESET in both.
|
|
717
|
+
- The same probe found that `fetch` in both runtimes ends a request that
|
|
718
|
+
receives nothing after about 370 seconds unless it passes `timeout: false`.
|
|
719
|
+
`azure.callTimeoutSeconds` accepts up to 1,800 seconds, so a longer setting
|
|
720
|
+
used to end at that point with a retried network error. AZPR now passes
|
|
721
|
+
`timeout: false`, and its own per-call timeout decides. In 2.1.4's runtime,
|
|
722
|
+
AZPR's client sent one comment write to a silent server with a 400-second
|
|
723
|
+
timeout: without the option it ended at 372 seconds with `network error (23)`,
|
|
724
|
+
with it through AZPR's per-call timeout (413 seconds by the wall clock).
|
|
725
|
+
- Upgrade: `npm install -g @opencode/cli@2.1.4`; the background service,
|
|
726
|
+
still running 2.1.2, was then stopped and its database copied before 2.1.4
|
|
727
|
+
first opened it, and the service was started on 2.1.4. With this revision
|
|
728
|
+
`/pr-check` on the 1-file PR was READY without a host notice.
|
|
729
|
+
|
|
730
|
+
Live on the upgraded background service with this revision (gpt-6-luna for
|
|
731
|
+
quick and review, `workflow.parallelSessions` 8, each review followed by a
|
|
732
|
+
comment preview; nothing was posted):
|
|
733
|
+
|
|
734
|
+
| PR | Mode | Review | Sessions / requests | Input (cached) | Findings | Preview (inline) |
|
|
735
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
736
|
+
| PR #2, 1 file | quick | COMPLETE, 48 s | 1 / 6 | 39 K (60 %) | the 3 known defects | 7 s (0; the PR's threads already discuss all 3) |
|
|
737
|
+
| | review | COMPLETE, 75 s | 3 / 12 | 84 K (52 %) | the 3 known defects | 7 s (0; already discussed) |
|
|
738
|
+
| PR #4, 35 files | quick | COMPLETE, 36 s | 2 / 7 | 167 K (52 %) | no candidate for either seeded regression | 3 s (0) |
|
|
739
|
+
| | review | COMPLETE, 75 s | 5 / 15 | 309 K (55 %) | the seeded regression in the diff | 10 s (1) |
|
|
740
|
+
| PR #3, 316 files | quick | COMPLETE, 136 s | 13 / 51 | 1.81 M (66 %) | all 24 seeded policy defects | 74 s (23) |
|
|
741
|
+
| | review | COMPLETE, 297 s | 30 / 128, 1 correction | 4.45 M (72 %) | all 24 seeded policy defects, no other finding | 98 s (30) |
|
|
742
|
+
|
|
743
|
+
All six reviews and previews completed with no AZPR retry, failed stage,
|
|
744
|
+
inactivity stop, tool timeout, blocked tool, host retry, rejected model request
|
|
745
|
+
or Azure DevOps retry; one reviewer once called a diff tool without its path
|
|
746
|
+
and got the host's argument error. The results stay within gpt-6-luna's range
|
|
747
|
+
on 2.1.2: which of the two seeded regressions in the 35-file PR a run finds
|
|
748
|
+
still varies between runs. These live runs preceded the `timeout: false`
|
|
749
|
+
change, which the fixtures and the probe above cover.
|
|
750
|
+
|
|
751
|
+
## OpenCode 2.1.2 (2026-10-22)
|
|
752
|
+
|
|
753
|
+
From 2026-10-22 to 2026-10-24 the tested host was OpenCode CLI 2.1.2, which
|
|
754
|
+
the user's company ran then (`TESTED_HOST_VERSION`; CI ran the exact-host
|
|
755
|
+
fixtures with it).
|
|
614
756
|
2.1.0 and 2.1.1 were not tested. Reviewing the 146 commits from `v2.0.32` to
|
|
615
757
|
`v2.1.2` of the OpenCode source found nothing AZPR depends on changed:
|
|
616
758
|
|
|
@@ -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).
|
|
@@ -0,0 +1,93 @@
|
|
|
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).
|
package/install.sh
CHANGED
|
@@ -159,7 +159,7 @@ mv -- "$stage/new/$target" "$root/$target"
|
|
|
159
159
|
success=1
|
|
160
160
|
# Informational output only; an unwritable output must not fail a completed install.
|
|
161
161
|
{
|
|
162
|
-
printf '\nAzure PR Review installed (target host: @opencode/cli 2.1.
|
|
162
|
+
printf '\nAzure PR Review installed (target host: @opencode/cli 2.1.4; Ubuntu 22.04).\nSettings: %s\n' "$root/plugins/azpr-v2/settings.json"
|
|
163
163
|
printf 'No installation backup is retained after success. Existing older backups are untouched.\n'
|
|
164
164
|
cat <<'TXT'
|
|
165
165
|
1. Configure models.review.functional/risk/verifier. Configure all three models.deep roles to enable /pr-deep, the same review with models stronger than models.review for the PRs that need them, and models.quick.reviewer to enable /pr-quick.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-azure-devops-pr-review",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Azure DevOps PR reviews in OpenCode
|
|
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",
|
package/src/azure.mjs
CHANGED
|
@@ -249,8 +249,10 @@ function retryAfterMs(header) {
|
|
|
249
249
|
return Number.isFinite(ms) && ms > 0 ? Math.min(ms, MAX_RETRY_AFTER_MS) : undefined;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
// Fetch error codes: Bun (OpenCode's runtime) reports e.g. ConnectionRefused where Node
|
|
253
|
-
|
|
252
|
+
// Fetch error codes: Bun 1.4.2 (OpenCode's runtime through 2.1.2) reports e.g. ConnectionRefused where Node and
|
|
253
|
+
// Bun 1.4.4 report ECONNREFUSED.
|
|
254
|
+
// ERR_PROXY_TUNNEL: the proxy refused the CONNECT tunnel, so nothing reached Azure DevOps.
|
|
255
|
+
const NOT_SENT_CODES = /^(?:ECONNREFUSED|ConnectionRefused|FailedToOpenSocket|ENOTFOUND|EAI_AGAIN|ERR_PROXY_TUNNEL)$/;
|
|
254
256
|
const UNREACHABLE_CODES = /^(?:ECONNREFUSED|ConnectionRefused|FailedToOpenSocket|ENOTFOUND|EAI_AGAIN|ETIMEDOUT|ENETUNREACH|EHOSTUNREACH)$/;
|
|
255
257
|
const CERTIFICATE_CODES = /^(?:UNABLE_TO_GET_ISSUER_CERT(?:_LOCALLY)?|UNABLE_TO_VERIFY_LEAF_SIGNATURE|SELF_SIGNED_CERT_IN_CHAIN|DEPTH_ZERO_SELF_SIGNED_CERT|CERT_[A-Z_]+|ERR_TLS_CERT_ALTNAME_INVALID)$/;
|
|
256
258
|
// Azure DevOps marks every response it serves; a proxy's own answer does not carry this header.
|
|
@@ -296,15 +298,15 @@ export function createAzureClient({ organization, pat, baseUrl = DEFAULT_BASE_UR
|
|
|
296
298
|
signal.addEventListener('abort', stop, { once: true });
|
|
297
299
|
});
|
|
298
300
|
|
|
299
|
-
/** An answer from a proxy or gateway instead of Azure DevOps. */
|
|
300
|
-
function intermediaryFailure(status, label, method) {
|
|
301
|
+
/** An answer from a proxy or gateway instead of Azure DevOps; `forwarded` is false when it refused the tunnel. */
|
|
302
|
+
function intermediaryFailure(status, label, method, forwarded = true) {
|
|
301
303
|
if (status === 407) {
|
|
302
304
|
return new AzureError(`A proxy refused ${label}: it requires authentication (HTTP 407).`, { kind: 'proxy', status,
|
|
303
305
|
hint: 'Put the proxy user name and password in azure.proxy (http://user:password@host:port, percent-encoded) and restart OpenCode.' });
|
|
304
306
|
}
|
|
305
307
|
// A gateway that already forwarded a write may have delivered it.
|
|
306
308
|
return new AzureError(`A proxy or gateway answered ${label} with HTTP ${status} instead of Azure DevOps (no Azure DevOps response headers).`, {
|
|
307
|
-
kind: 'proxy', status, transient: status === 429 || status >= 500, uncertain: method !== 'GET' && status >= 500,
|
|
309
|
+
kind: 'proxy', status, transient: status === 429 || status >= 500, uncertain: forwarded && method !== 'GET' && status >= 500,
|
|
308
310
|
hint: proxyName ? `Check that the proxy ${proxyName} (azure.proxy) allows dev.azure.com.`
|
|
309
311
|
: 'Check the proxy or firewall between OpenCode and dev.azure.com; set azure.proxy if this network requires one.' });
|
|
310
312
|
}
|
|
@@ -330,7 +332,10 @@ export function createAzureClient({ organization, pat, baseUrl = DEFAULT_BASE_UR
|
|
|
330
332
|
let response;
|
|
331
333
|
try {
|
|
332
334
|
response = await fetchImpl(url, {
|
|
333
|
-
|
|
335
|
+
// Bun's fetch gives up on its own after five to six minutes without data (370 s in Bun 1.4.2 and
|
|
336
|
+
// 1.4.4); the queue's per-call timeout (azure.callTimeoutSeconds, up to 30 minutes) aborts through
|
|
337
|
+
// `signal` instead. Node's fetch ignores the option.
|
|
338
|
+
method, redirect: 'manual', signal, timeout: false,
|
|
334
339
|
headers: { authorization, accept: accept === 'json' ? 'application/json' : 'application/octet-stream',
|
|
335
340
|
...(body === undefined ? {} : { 'content-type': 'application/json' }) },
|
|
336
341
|
...(body === undefined ? {} : { body: JSON.stringify(body) }),
|
|
@@ -340,6 +345,10 @@ export function createAzureClient({ organization, pat, baseUrl = DEFAULT_BASE_UR
|
|
|
340
345
|
if (signal?.aborted) throw signal.reason instanceof Error ? signal.reason : error;
|
|
341
346
|
const code = error?.cause?.code ?? error?.code;
|
|
342
347
|
const known = typeof code === 'string' ? code : '';
|
|
348
|
+
// Bun 1.4.4 (OpenCode 2.1.3 and later) rejects with the proxy's status when it refuses the
|
|
349
|
+
// CONNECT tunnel; Bun 1.4.2 returned that answer as a response.
|
|
350
|
+
const tunnelStatus = known === 'ERR_PROXY_TUNNEL' ? error?.status ?? error?.cause?.status : undefined;
|
|
351
|
+
if (Number.isInteger(tunnelStatus) && tunnelStatus >= 400) throw intermediaryFailure(tunnelStatus, label, method, false);
|
|
343
352
|
// A rejected certificate fails the handshake before anything is sent; retrying cannot help.
|
|
344
353
|
if (CERTIFICATE_CODES.test(known)) {
|
|
345
354
|
throw new AzureError(`Azure DevOps ${label} failed: the server's TLS certificate was not accepted (${clean(known)}).`, { kind: 'tls', code: known, cause: error,
|