opencode-azure-devops-pr-review 0.4.3 → 0.4.5

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,190 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.5 — 2026-11-20
4
+
5
+ While a run is under way, the terminal panel offers to stop it. The reviewer,
6
+ verifier and comment-planning instructions are those of 0.4.4, and no setting
7
+ is new.
8
+
9
+ The terminal panel:
10
+
11
+ - A `STARTED` notice says how its run is stopped (`/pr-stop <run-id>`), but
12
+ in the conversation, which a person who reads the panel does not watch, and
13
+ with an ID to copy. While a run is under way (a review, a preview that is
14
+ being planned, a publication, a check) the row at the panel's foot now
15
+ offers **Stop this run…** (`s`), and nothing else.
16
+ - Stopping asks first, in a list whose first row is "No, let it run" and
17
+ names the run. "Yes, stop it" sends `/pr-stop` with that run's ID to the
18
+ session on screen, and AZPR takes it like a typed command; the run ends
19
+ with its `CANCELLED` receipt, and requests that were already sent may still
20
+ be billed.
21
+ - What is typed into such a question finds a row by the beginning of its
22
+ title: `y` finds "Yes" and `n` "No". The key that opened the question,
23
+ pressed once more than meant, is typed into it, and OpenCode's own search
24
+ would find `s` in "Yes, stop it" alone and select it; now it leaves no row
25
+ for Enter to take. The question before posting answers the same way.
26
+ - An answer is acted on only while the panel still shows that run as under
27
+ way. If the run has ended, or the next run has started, while the question
28
+ was open, nothing is sent and the panel says so; a step that reaches AZPR
29
+ after its run has ended stops nothing, and no other run.
30
+ - That a run can be stopped comes from the runtime, like every other step: in
31
+ the metadata of the run's `STARTED` notice, which no model reads (the run's
32
+ ID). The text of that notice is unchanged, and progress notices and
33
+ receipts are sent as before. A run that an earlier version started offers
34
+ nothing; it is stopped by typing the command its notice shows.
35
+ - Where the panel has no report or preview to show, it said "No report or
36
+ preview yet." also of a run that had ended, such as one that was stopped.
37
+ Once the run has its receipt it now says "This run ended with no report or
38
+ preview to show."
39
+ - A click on a step at the panel's foot could be lost (since 0.4.4). The
40
+ steps were drawn anew whenever the panel worked its content out again,
41
+ which every notice and every answer of the server causes, and OpenTUI finds
42
+ what lies under the pointer in the frame it drew last: a press or a release
43
+ that came before the next frame went nowhere. Each step now keeps its
44
+ element, as the session rows do, and its highlight under the pointer.
45
+
46
+ Documentation:
47
+
48
+ - The recording at the top of the README and the pictures of the panel in
49
+ the demonstration are new: a real review with the row at the panel's foot
50
+ (the step that stops a run, then posting and adjusting), a review stopped
51
+ from the panel, and the whole terminal in every frame. They showed the
52
+ panel of 0.4.2.
53
+
54
+ ## 0.4.4 — 2026-11-19
55
+
56
+ After a comment preview, the terminal panel lists what you can do next at its
57
+ foot, and picking one does it: post the comments, leave findings out or change
58
+ a level, reset that. A conversation used for a review is named after its PR,
59
+ and several texts of setup say more exactly what they mean. The reviewer,
60
+ verifier and comment-planning instructions are those of 0.4.3, and no setting
61
+ is new.
62
+
63
+ The terminal panel:
64
+
65
+ - A receipt ends with the commands for the next step, but the panel shows the
66
+ document a receipt encloses, so those commands had to be found in the
67
+ conversation and typed. After a comment preview the panel now lists them in
68
+ one row at its foot, where reading ends: **Post N comments…**, **Adjust
69
+ findings…**, and **Reset adjustments** once there are some. The row is on
70
+ the panel's own ground under a line, stays in place while the text scrolls,
71
+ is level with OpenCode's status bar, and wraps as whole items in a narrow
72
+ panel. One of them is clicked, or picked with its key (`p`, `a`, `u`) while
73
+ the panel has the keyboard; the keys are drawn dim while they would only
74
+ type a letter into the prompt. A label that ends in `…` asks before
75
+ anything is sent.
76
+ - Posting asks once more, in a list whose first row is "No, post nothing":
77
+ a key pressed twice posts nothing.
78
+ - Adjusting opens the findings as a list with how each is published now.
79
+ Pick one to leave it out or to choose its level; every change is applied
80
+ with one command from the foot of the list (**apply**, `ctrl+s`), which
81
+ stays in view however long the list is, or from the list's last row, and
82
+ the preview is planned again.
83
+ - After a review that no preview follows by itself (`afterReview: none`, a
84
+ review that was stopped, or one without findings to comment on) the row
85
+ offers **Preview comments** (`c`) instead of posting, and the findings can
86
+ be adjusted before that first preview.
87
+ - Each of them sends the `/pr-comment` command you would type, with the ID of
88
+ the review the panel shows, to the session on screen; AZPR takes it like a
89
+ typed command, so its checks, its `STARTED` notice and its receipt are the
90
+ same. The panel sends nothing by itself and never a prompt. The steps are
91
+ there only for the notice that happened last: once a run starts or another
92
+ receipt arrives, they are gone.
93
+ - A click on one of them leaves the keyboard with the prompt: the host gives
94
+ a panel the keyboard on a click, and a key of the panel would then act on
95
+ what is typed next.
96
+ - Letting go of the mouse button at the end of a selection of text is no
97
+ click. Text selected down the panel and let go over a session's row opened
98
+ that session, and over `close` closed the panel (since 0.4.2); neither
99
+ happens now, and a step at the panel's foot is not picked that way either.
100
+ A step is picked by pressing and letting go of the left button on it:
101
+ letting go after the pointer has left the step picks nothing.
102
+ - An answer is acted on only while the panel still shows what it was given
103
+ for. If the preview is planned again, another session comes on screen or
104
+ the panel is closed while a question is open, nothing is sent, and the
105
+ panel says so: a preview is not posted unread.
106
+ - A panel knows only what its own conversation was told, and a command typed
107
+ in a review's own session, or in another client, changes the review without
108
+ a notice there. Each command the panel sends therefore ends with
109
+ `--seen <word>`, which names the saved preview and the adjustments its step
110
+ was offered for; AZPR refuses the command when they are others by now
111
+ (`Review <id> is no longer as it was shown: …`), and `/pr-comment --show`
112
+ shows the saved preview again with its steps. A command you type needs no
113
+ such word and acts on the review as it is.
114
+ - What can be picked comes from the runtime, in the metadata of the notice
115
+ that offers it (which no model reads), not from the text on screen: which
116
+ review, whether its preview can be posted, and each finding with its level
117
+ and whether it is left out. It goes with the document that notice encloses:
118
+ under a report a preview is planned, never posted. The text of every other
119
+ notice is unchanged. A review with more than 200 findings offers nothing
120
+ to pick.
121
+ - A preview that is planned again is shown from its beginning, wherever the
122
+ one before it was left, and the text that scrolls no longer touches the
123
+ panel's header.
124
+ - A session whose model has answered is shown as `finished` until its run's
125
+ receipt names its result (`complete`, `failed`). It was shown as `idle`,
126
+ OpenCode's word for a session at rest, which read like a fault while the
127
+ verifier was still working.
128
+
129
+ Comments:
130
+
131
+ - A run's receipt is written after its sessions were cleaned up, when another
132
+ `/pr-comment` command may already have run. A preview that another command
133
+ adjusted, planned again or posted in that moment was still shown in its
134
+ run's receipt as the preview to post. Such a run now ends with a receipt of
135
+ a status of its own, `REPLACED`, which shows nothing of that preview,
136
+ offers nothing and does not make its review the current one; the other
137
+ command's receipt is the one to read. The terminal panel takes it for the
138
+ end of that run, not for what happened last.
139
+
140
+ Conversations:
141
+
142
+ - OpenCode names a conversation when its own model first runs there, which an
143
+ AZPR command never makes it do, so a conversation used only for reviews
144
+ stayed "New session" in the session list. A check or a review now names a
145
+ conversation nobody named after the PR its URL names, for example
146
+ `AZPR: PR #123 (repository)`. The PR's own title is not used.
147
+ - A name that is there stays. OpenCode has no rename that applies only to an
148
+ unnamed conversation, and nothing ties a rename it reports to the call
149
+ that made it, so AZPR's own name gives way wherever it can tell and also
150
+ where it cannot: it follows the renames the host reports, and a name that
151
+ a person or OpenCode's model gives in the same moment is written back
152
+ where AZPR's write may have replaced it. One conversation is named by one
153
+ watch at a time; the watch stays open for a few seconds after AZPR's
154
+ write, is not closed while a write is under way, and is ended properly
155
+ when the plugin is unloaded. A host that reports no renames gets no name
156
+ from AZPR. With debug records on, `conversation-name.json` says how naming
157
+ ended. What this cannot rule out (a person who gives a name and then
158
+ exactly the words AZPR wrote, both in that moment, keeps the name given
159
+ first) is said in `docs/ARCHITECTURE.md`, "Authorization and isolation".
160
+
161
+ Setup:
162
+
163
+ - Without usable settings, OpenCode's command list described every review
164
+ command as "AZPR setup required; run /pr-setup", also in a project
165
+ directory that only needed a restart because the settings had been saved
166
+ from another one. It now says "AZPR is not ready here; run /pr-setup to see
167
+ what it needs", which holds for both, and `/pr-setup` says which it is.
168
+ - The settings list says what each model is for (`for /pr-review`,
169
+ `for /pr-quick`, `for /pr-deep`). The dialog of the deep model says what
170
+ makes one: a model stronger than the review model, or the same model with a
171
+ higher variant, which reasons longer; `/pr-setup --help`, the **Deep
172
+ models** rows of `/pr-check` and the settings schema say the same.
173
+ - "Settings file" in the list, and `/pr-setup --help`, name the section of
174
+ the README that describes every setting, with its address:
175
+ [all settings and defaults](README.md#all-settings-and-defaults).
176
+
177
+ Documentation:
178
+
179
+ - The README shows the result and a recording first, then the first review,
180
+ and keeps its reference part in sections that are named in one table;
181
+ detail that is looked up, not read through, is folded. The settings
182
+ reference is no longer folded.
183
+ - The quickstart shows a recording of the setup dialogs, and the README the
184
+ list of settings.
185
+ - A source installation has one more file, `src/tui-actions.mjs`: 36 in all
186
+ for manual copying.
187
+
3
188
  ## 0.4.3 — 2026-11-18
4
189
 
5
190
  `/pr-setup` sets AZPR up in OpenCode's terminal UI: dialogs ask for the