opencode-reviewer 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  Reviews pending permissions in the OpenCode sidebar using a separate LLM. Covers
4
4
  shell commands, file edits, MCP calls, custom tools, and external-directory access.
5
- Supports streaming explanations and optional one-time auto-approval.
5
+ Supports streaming explanations, optional one-time auto-approval, and
6
+ reviewer-aware Linux desktop notifications with distinct sounds.
6
7
 
7
8
  Requires OpenCode 1.18.35 on Linux.
8
9
 
@@ -32,6 +33,9 @@ OpenCode installs the [npm package](https://www.npmjs.com/package/opencode-revie
32
33
  "autoApprove": false,
33
34
  "extraCareful": true,
34
35
  "autoApproveDelaySeconds": 15,
36
+ "notify": true,
37
+ "notifySound": true,
38
+ "notificationSoundDirectory": "/absolute/path/to/notification-sounds",
35
39
  "formatRetries": 1,
36
40
  "timeoutMs": 30000,
37
41
  "maxFiles": 6,
@@ -48,7 +52,8 @@ at that endpoint.
48
52
 
49
53
  Replace `apiKey`, or remove it and set the variable named by `apiKeyEnv` before
50
54
  launching OpenCode. The inline key takes precedence. Omit both for an unauthenticated
51
- endpoint. Remove `instructions` to use the built-in prompts.
55
+ endpoint. Remove `instructions` to use the built-in prompts and
56
+ `notificationSoundDirectory` to use the bundled sounds.
52
57
 
53
58
  The remaining values above are the defaults. Restart OpenCode after changing
54
59
  configuration. Reviews run when OpenCode asks for permission, so set the relevant
@@ -67,6 +72,9 @@ rules to `ask` in `opencode.json`. Existing `allow` rules skip review.
67
72
  | `autoApprove` | Allow completed Safe reviews once after the visible countdown. |
68
73
  | `extraCareful` | Include the extra-careful prompt in auto-mode reviews. Defaults to `true`; set `false` to omit it. |
69
74
  | `autoApproveDelaySeconds` | Countdown duration, 0–3600 seconds. |
75
+ | `notify` | Linux desktop notifications and sounds. Defaults to `true`; set `false` to disable both. |
76
+ | `notifySound` | Play notification sounds. Defaults to `true`; set `false` to keep banners silent. |
77
+ | `notificationSoundDirectory` | Absolute custom sound directory. Use `attention`, `approved`, `error`, and `ended` basenames with `.wav` or `.mp3`; WAV takes precedence. Missing or unusable files fall back to bundled sounds. |
70
78
  | `formatRetries` | Additional attempts to correct malformed assessment JSON, 0–100. |
71
79
  | `timeoutMs` | Total review deadline, 1–3,600,000 ms. |
72
80
  | `maxFiles` | File limit per review, 1–1,000. |
@@ -88,6 +96,8 @@ During an auto-approval countdown, click the countdown to allow once immediately
88
96
  or Cancel to leave the request manual. Hiding or covering the panel also cancels
89
97
  that request's countdown. Cancel before using native Allow always or rejection
90
98
  forms; those forms alone do not stop the countdown.
99
+ Positive countdowns hold their configured starting number for one extra second
100
+ before counting down. A zero-second setting still approves without that hold.
91
101
 
92
102
  `/reviewer-disable` and `/reviewer-enable` control the current conversation and its
93
103
  descendants. The setting is saved for resume. Both commands are also in the command
@@ -105,6 +115,50 @@ file snapshots, diffs, or tool arguments to your endpoint before approval. Shell
105
115
  file snapshots can follow symlinks outside the project. Missing evidence is noted
106
116
  in the report; ratings are advice based on the supplied evidence.
107
117
 
118
+ ### Desktop notifications
119
+
120
+ Transient banners have an **Opencode** heading and a small status icon: green
121
+ checkmark for approvals, orange exclamation mark for attention/countdowns, red X
122
+ for errors, and a neutral code mark for completed responses. GNOME controls the
123
+ heading's font weight. The event
124
+ message and conversation title appear beneath it, even while the terminal is focused.
125
+ An explicit separator keeps them distinct on desktops that flatten banner text:
126
+
127
+ - **Session needs attention:** questions and manual permissions. Reviewed requests
128
+ wait for a final validated assessment; failures, canceled automation, and a Safe
129
+ review blocked from starting its countdown also notify. Unreviewed requests
130
+ notify immediately, including when conversation review is disabled.
131
+ - **Reviewer will approve permission in X s:** one announcement when a positive
132
+ countdown starts, using the attention sound. Confirmed automatic approval then
133
+ sends **Reviewer approved a permission** with the approval sound. Zero delay
134
+ sends only the confirmed approval notification. Approval sounds are limited to
135
+ one every two seconds; every eligible banner is retained for delivery.
136
+ - **Session error:** an unrecovered session/provider failure, not a review failure.
137
+ - **Session ended:** a completed root-agent response, not a question/permission
138
+ pause or an explicit user interruption.
139
+
140
+ Notifications cover conversations visited in this terminal and their descendants.
141
+ Existing pending requests at startup/resume are not replayed. Clicking can select
142
+ the originating GNOME Terminal tab and root conversation. Native input prompts
143
+ cover root/direct-child requests in the supported host. Open dialogs are
144
+ left intact; other terminals still receive banners and sounds. Desktop policies
145
+ control expiry/history and whether activation actually brings a window forward.
146
+ GNOME Terminal clicks use the desktop activation token to bring the correct tab
147
+ forward across workspaces. GNOME may attribute the notification source to Terminal;
148
+ the banner heading remains Opencode.
149
+
150
+ Linux delivery uses `notify-send`, `stdbuf`, and `gdbus`; audio uses `paplay` or `pw-play`.
151
+ On Ubuntu, `libnotify-bin`, `coreutils`, `libglib2.0-bin`, and `pulseaudio-utils` provide these
152
+ utilities. The MP3 decoder and four default sounds are bundled; FFmpeg is not
153
+ required. MP3 and mono/stereo PCM/float WAV files up to 4 MiB and 10 seconds are
154
+ normalized toward -20 dBFS RMS with a -3 dBFS peak ceiling before playback.
155
+ Custom sounds are loaded on first use; restart after replacing them.
156
+ Audio is prepared before showing its banner and played from the normalized cache
157
+ with a low-latency buffer; preparation never blocks permission approval.
158
+ `stdbuf` makes delivery acknowledgements immediate instead of waiting for
159
+ `notify-send` to flush its output when the banner closes.
160
+ Disable overlapping notification plugins to avoid duplicate alerts.
161
+
108
162
  ## Development
109
163
 
110
164
  Use Node.js 24.15.0+ within 24.x, or 22.22.2+ within 22.x, and npm.
@@ -26,3 +26,516 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
26
26
  ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27
27
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28
28
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
+
30
+ # Bundled audio decoder and supplied sounds
31
+
32
+ The four notification MP3 files were supplied by the maintainer with explicit
33
+ permission to redistribute them with this plugin. Their original bytes are
34
+ embedded in the bundle. Normalization occurs during playback preparation.
35
+
36
+ The MP3 decoder is `mpg123-decoder` 1.0.3, with
37
+ `@wasm-audio-decoders/common` 9.0.7 and `simple-yenc` 1.0.4.
38
+ The JavaScript wrappers are MIT licensed, Copyright Ethan Halsall;
39
+ `simple-yenc` specifies Copyright 2021-2023 Ethan Halsall. The MIT license
40
+ reproduced above also applies to those JavaScript components.
41
+
42
+ Decoder source and build instructions:
43
+ https://github.com/eshaz/wasm-audio-decoders/tree/8f2428c1cd96b54dab74836c8471ff75fe35cbee
44
+
45
+ Common helper source:
46
+ https://github.com/eshaz/wasm-audio-decoders/tree/e4f7eef8cda48719a884023582d8efc5b8d76f6c/src/common
47
+
48
+ The bundled decoder contains unmodified mpg123 library code compiled to
49
+ WebAssembly: Copyright (c) 1995-2020 by Michael Hipp and others, free software
50
+ under the terms of the LGPL v2.1. Complete upstream library source is available
51
+ at https://github.com/madebr/mpg123/tree/08247b317163175e62035893af3ff9e71a5dfefd.
52
+ The decoder repository above contains the wrapper and compilation scripts.
53
+ This project's source and build scripts are available at
54
+ https://github.com/mightykatun/opencode-reviewer, allowing the decoder to be
55
+ modified/rebuilt and the plugin rebundled. Modification for personal use and
56
+ reverse engineering for debugging such modifications are permitted.
57
+
58
+ The common helper contains puff, Copyright (C) 2002-2013 Mark Adler:
59
+
60
+ ```text
61
+ This software is provided 'as-is', without any express or implied
62
+ warranty. In no event will the author be held liable for any damages
63
+ arising from the use of this software.
64
+
65
+ Permission is granted to anyone to use this software for any purpose,
66
+ including commercial applications, and to alter it and redistribute it
67
+ freely, subject to the following restrictions:
68
+
69
+ 1. The origin of this software must not be misrepresented; you must not
70
+ claim that you wrote the original software. If you use this software
71
+ in a product, an acknowledgment in the product documentation would be
72
+ appreciated but is not required.
73
+ 2. Altered source versions must be plainly marked as such, and must not be
74
+ misrepresented as being the original software.
75
+ 3. This notice may not be removed or altered from any source distribution.
76
+
77
+ Mark Adler madler@alumni.caltech.edu
78
+ ```
79
+
80
+ ## GNU Lesser General Public License, version 2.1
81
+
82
+ ```text
83
+ GNU LESSER GENERAL PUBLIC LICENSE
84
+ Version 2.1, February 1999
85
+
86
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
87
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
88
+ Everyone is permitted to copy and distribute verbatim copies
89
+ of this license document, but changing it is not allowed.
90
+
91
+ [This is the first released version of the Lesser GPL. It also counts
92
+ as the successor of the GNU Library Public License, version 2, hence
93
+ the version number 2.1.]
94
+
95
+ Preamble
96
+
97
+ The licenses for most software are designed to take away your
98
+ freedom to share and change it. By contrast, the GNU General Public
99
+ Licenses are intended to guarantee your freedom to share and change
100
+ free software--to make sure the software is free for all its users.
101
+
102
+ This license, the Lesser General Public License, applies to some
103
+ specially designated software packages--typically libraries--of the
104
+ Free Software Foundation and other authors who decide to use it. You
105
+ can use it too, but we suggest you first think carefully about whether
106
+ this license or the ordinary General Public License is the better
107
+ strategy to use in any particular case, based on the explanations below.
108
+
109
+ When we speak of free software, we are referring to freedom of use,
110
+ not price. Our General Public Licenses are designed to make sure that
111
+ you have the freedom to distribute copies of free software (and charge
112
+ for this service if you wish); that you receive source code or can get
113
+ it if you want it; that you can change the software and use pieces of
114
+ it in new free programs; and that you are informed that you can do
115
+ these things.
116
+
117
+ To protect your rights, we need to make restrictions that forbid
118
+ distributors to deny you these rights or to ask you to surrender these
119
+ rights. These restrictions translate to certain responsibilities for
120
+ you if you distribute copies of the library or if you modify it.
121
+
122
+ For example, if you distribute copies of the library, whether gratis
123
+ or for a fee, you must give the recipients all the rights that we gave
124
+ you. You must make sure that they, too, receive or can get the source
125
+ code. If you link other code with the library, you must provide
126
+ complete object files to the recipients, so that they can relink them
127
+ with the library after making changes to the library and recompiling
128
+ it. And you must show them these terms so they know their rights.
129
+
130
+ We protect your rights with a two-step method: (1) we copyright the
131
+ library, and (2) we offer you this license, which gives you legal
132
+ permission to copy, distribute and/or modify the library.
133
+
134
+ To protect each distributor, we want to make it very clear that
135
+ there is no warranty for the free library. Also, if the library is
136
+ modified by someone else and passed on, the recipients should know
137
+ that what they have is not the original version, so that the original
138
+ author's reputation will not be affected by problems that might be
139
+ introduced by others.
140
+
141
+ Finally, software patents pose a constant threat to the existence of
142
+ any free program. We wish to make sure that a company cannot
143
+ effectively restrict the users of a free program by obtaining a
144
+ restrictive license from a patent holder. Therefore, we insist that
145
+ any patent license obtained for a version of the library must be
146
+ consistent with the full freedom of use specified in this license.
147
+
148
+ Most GNU software, including some libraries, is covered by the
149
+ ordinary GNU General Public License. This license, the GNU Lesser
150
+ General Public License, applies to certain designated libraries, and
151
+ is quite different from the ordinary General Public License. We use
152
+ this license for certain libraries in order to permit linking those
153
+ libraries into non-free programs.
154
+
155
+ When a program is linked with a library, whether statically or using
156
+ a shared library, the combination of the two is legally speaking a
157
+ combined work, a derivative of the original library. The ordinary
158
+ General Public License therefore permits such linking only if the
159
+ entire combination fits its criteria of freedom. The Lesser General
160
+ Public License permits more lax criteria for linking other code with
161
+ the library.
162
+
163
+ We call this license the "Lesser" General Public License because it
164
+ does Less to protect the user's freedom than the ordinary General
165
+ Public License. It also provides other free software developers Less
166
+ of an advantage over competing non-free programs. These disadvantages
167
+ are the reason we use the ordinary General Public License for many
168
+ libraries. However, the Lesser license provides advantages in certain
169
+ special circumstances.
170
+
171
+ For example, on rare occasions, there may be a special need to
172
+ encourage the widest possible use of a certain library, so that it becomes
173
+ a de-facto standard. To achieve this, non-free programs must be
174
+ allowed to use the library. A more frequent case is that a free
175
+ library does the same job as widely used non-free libraries. In this
176
+ case, there is little to gain by limiting the free library to free
177
+ software only, so we use the Lesser General Public License.
178
+
179
+ In other cases, permission to use a particular library in non-free
180
+ programs enables a greater number of people to use a large body of
181
+ free software. For example, permission to use the GNU C Library in
182
+ non-free programs enables many more people to use the whole GNU
183
+ operating system, as well as its variant, the GNU/Linux operating
184
+ system.
185
+
186
+ Although the Lesser General Public License is Less protective of the
187
+ users' freedom, it does ensure that the user of a program that is
188
+ linked with the Library has the freedom and the wherewithal to run
189
+ that program using a modified version of the Library.
190
+
191
+ The precise terms and conditions for copying, distribution and
192
+ modification follow. Pay close attention to the difference between a
193
+ "work based on the library" and a "work that uses the library". The
194
+ former contains code derived from the library, whereas the latter must
195
+ be combined with the library in order to run.
196
+
197
+ GNU LESSER GENERAL PUBLIC LICENSE
198
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
199
+
200
+ 0. This License Agreement applies to any software library or other
201
+ program which contains a notice placed by the copyright holder or
202
+ other authorized party saying it may be distributed under the terms of
203
+ this Lesser General Public License (also called "this License").
204
+ Each licensee is addressed as "you".
205
+
206
+ A "library" means a collection of software functions and/or data
207
+ prepared so as to be conveniently linked with application programs
208
+ (which use some of those functions and data) to form executables.
209
+
210
+ The "Library", below, refers to any such software library or work
211
+ which has been distributed under these terms. A "work based on the
212
+ Library" means either the Library or any derivative work under
213
+ copyright law: that is to say, a work containing the Library or a
214
+ portion of it, either verbatim or with modifications and/or translated
215
+ straightforwardly into another language. (Hereinafter, translation is
216
+ included without limitation in the term "modification".)
217
+
218
+ "Source code" for a work means the preferred form of the work for
219
+ making modifications to it. For a library, complete source code means
220
+ all the source code for all modules it contains, plus any associated
221
+ interface definition files, plus the scripts used to control compilation
222
+ and installation of the library.
223
+
224
+ Activities other than copying, distribution and modification are not
225
+ covered by this License; they are outside its scope. The act of
226
+ running a program using the Library is not restricted, and output from
227
+ such a program is covered only if its contents constitute a work based
228
+ on the Library (independent of the use of the Library in a tool for
229
+ writing it). Whether that is true depends on what the Library does
230
+ and what the program that uses the Library does.
231
+
232
+ 1. You may copy and distribute verbatim copies of the Library's
233
+ complete source code as you receive it, in any medium, provided that
234
+ you conspicuously and appropriately publish on each copy an
235
+ appropriate copyright notice and disclaimer of warranty; keep intact
236
+ all the notices that refer to this License and to the absence of any
237
+ warranty; and distribute a copy of this License along with the
238
+ Library.
239
+
240
+ You may charge a fee for the physical act of transferring a copy,
241
+ and you may at your option offer warranty protection in exchange for a
242
+ fee.
243
+
244
+ 2. You may modify your copy or copies of the Library or any portion
245
+ of it, thus forming a work based on the Library, and copy and
246
+ distribute such modifications or work under the terms of Section 1
247
+ above, provided that you also meet all of these conditions:
248
+
249
+ a) The modified work must itself be a software library.
250
+
251
+ b) You must cause the files modified to carry prominent notices
252
+ stating that you changed the files and the date of any change.
253
+
254
+ c) You must cause the whole of the work to be licensed at no
255
+ charge to all third parties under the terms of this License.
256
+
257
+ d) If a facility in the modified Library refers to a function or a
258
+ table of data to be supplied by an application program that uses
259
+ the facility, other than as an argument passed when the facility
260
+ is invoked, then you must make a good faith effort to ensure that,
261
+ in the event an application does not supply such function or
262
+ table, the facility still operates, and performs whatever part of
263
+ its purpose remains meaningful.
264
+
265
+ (For example, a function in a library to compute square roots has
266
+ a purpose that is entirely well-defined independent of the
267
+ application. Therefore, Subsection 2d requires that any
268
+ application-supplied function or table used by this function must
269
+ be optional: if the application does not supply it, the square
270
+ root function must still compute square roots.)
271
+
272
+ These requirements apply to the modified work as a whole. If
273
+ identifiable sections of that work are not derived from the Library,
274
+ and can be reasonably considered independent and separate works in
275
+ themselves, then this License, and its terms, do not apply to those
276
+ sections when you distribute them as separate works. But when you
277
+ distribute the same sections as part of a whole which is a work based
278
+ on the Library, the distribution of the whole must be on the terms of
279
+ this License, whose permissions for other licensees extend to the
280
+ entire whole, and thus to each and every part regardless of who wrote
281
+ it.
282
+
283
+ Thus, it is not the intent of this section to claim rights or contest
284
+ your rights to work written entirely by you; rather, the intent is to
285
+ exercise the right to control the distribution of derivative or
286
+ collective works based on the Library.
287
+
288
+ In addition, mere aggregation of another work not based on the Library
289
+ with the Library (or with a work based on the Library) on a volume of
290
+ a storage or distribution medium does not bring the other work under
291
+ the scope of this License.
292
+
293
+ 3. You may opt to apply the terms of the ordinary GNU General Public
294
+ License instead of this License to a given copy of the Library. To do
295
+ this, you must alter all the notices that refer to this License, so
296
+ that they refer to the ordinary GNU General Public License, version 2,
297
+ instead of to this License. (If a newer version than version 2 of the
298
+ ordinary GNU General Public License has appeared, then you can specify
299
+ that version instead if you wish.) Do not make any other change in
300
+ these notices.
301
+
302
+ Once this change is made in a given copy, it is irreversible for
303
+ that copy, so the ordinary GNU General Public License applies to all
304
+ subsequent copies and derivative works made from that copy.
305
+
306
+ This option is useful when you wish to copy part of the code of
307
+ the Library into a program that is not a library.
308
+
309
+ 4. You may copy and distribute the Library (or a portion or
310
+ derivative of it, under Section 2) in object code or executable form
311
+ under the terms of Sections 1 and 2 above provided that you accompany
312
+ it with the complete corresponding machine-readable source code, which
313
+ must be distributed under the terms of Sections 1 and 2 above on a
314
+ medium customarily used for software interchange.
315
+
316
+ If distribution of object code is made by offering access to copy
317
+ from a designated place, then offering equivalent access to copy the
318
+ source code from the same place satisfies the requirement to
319
+ distribute the source code, even though third parties are not
320
+ compelled to copy the source along with the object code.
321
+
322
+ 5. A program that contains no derivative of any portion of the
323
+ Library, but is designed to work with the Library by being compiled or
324
+ linked with it, is called a "work that uses the Library". Such a
325
+ work, in isolation, is not a derivative work of the Library, and
326
+ therefore falls outside the scope of this License.
327
+
328
+ However, linking a "work that uses the Library" with the Library
329
+ creates an executable that is a derivative of the Library (because it
330
+ contains portions of the Library), rather than a "work that uses the
331
+ library". The executable is therefore covered by this License.
332
+ Section 6 states terms for distribution of such executables.
333
+
334
+ When a "work that uses the Library" uses material from a header file
335
+ that is part of the Library, the object code for the work may be a
336
+ derivative work of the Library even though the source code is not.
337
+ Whether this is true is especially significant if the work can be
338
+ linked without the Library, or if the work is itself a library. The
339
+ threshold for this to be true is not precisely defined by law.
340
+
341
+ If such an object file uses only numerical parameters, data
342
+ structure layouts and accessors, and small macros and small inline
343
+ functions (ten lines or less in length), then the use of the object
344
+ file is unrestricted, regardless of whether it is legally a derivative
345
+ work. (Executables containing this object code plus portions of the
346
+ Library will still fall under Section 6.)
347
+
348
+ Otherwise, if the work is a derivative of the Library, you may
349
+ distribute the object code for the work under the terms of Section 6.
350
+ Any executables containing that work also fall under Section 6,
351
+ whether or not they are linked directly with the Library itself.
352
+
353
+ 6. As an exception to the Sections above, you may also combine or
354
+ link a "work that uses the Library" with the Library to produce a
355
+ work containing portions of the Library, and distribute that work
356
+ under terms of your choice, provided that the terms permit
357
+ modification of the work for the customer's own use and reverse
358
+ engineering for debugging such modifications.
359
+
360
+ You must give prominent notice with each copy of the work that the
361
+ Library is used in it and that the Library and its use are covered by
362
+ this License. You must supply a copy of this License. If the work
363
+ during execution displays copyright notices, you must include the
364
+ copyright notice for the Library among them, as well as a reference
365
+ directing the user to the copy of this License. Also, you must do one
366
+ of these things:
367
+
368
+ a) Accompany the work with the complete corresponding
369
+ machine-readable source code for the Library including whatever
370
+ changes were used in the work (which must be distributed under
371
+ Sections 1 and 2 above); and, if the work is an executable linked
372
+ with the Library, with the complete machine-readable "work that
373
+ uses the Library", as object code and/or source code, so that the
374
+ user can modify the Library and then relink to produce a modified
375
+ executable containing the modified Library. (It is understood
376
+ that the user who changes the contents of definitions files in the
377
+ Library will not necessarily be able to recompile the application
378
+ to use the modified definitions.)
379
+
380
+ b) Use a suitable shared library mechanism for linking with the
381
+ Library. A suitable mechanism is one that (1) uses at run time a
382
+ copy of the library already present on the user's computer system,
383
+ rather than copying library functions into the executable, and (2)
384
+ will operate properly with a modified version of the library, if
385
+ the user installs one, as long as the modified version is
386
+ interface-compatible with the version that the work was made with.
387
+
388
+ c) Accompany the work with a written offer, valid for at
389
+ least three years, to give the same user the materials
390
+ specified in Subsection 6a, above, for a charge no more
391
+ than the cost of performing this distribution.
392
+
393
+ d) If distribution of the work is made by offering access to copy
394
+ from a designated place, offer equivalent access to copy the above
395
+ specified materials from the same place.
396
+
397
+ e) Verify that the user has already received a copy of these
398
+ materials or that you have already sent this user a copy.
399
+
400
+ For an executable, the required form of the "work that uses the
401
+ Library" must include any data and utility programs needed for
402
+ reproducing the executable from it. However, as a special exception,
403
+ the materials to be distributed need not include anything that is
404
+ normally distributed (in either source or binary form) with the major
405
+ components (compiler, kernel, and so on) of the operating system on
406
+ which the executable runs, unless that component itself accompanies
407
+ the executable.
408
+
409
+ It may happen that this requirement contradicts the license
410
+ restrictions of other proprietary libraries that do not normally
411
+ accompany the operating system. Such a contradiction means you cannot
412
+ use both them and the Library together in an executable that you
413
+ distribute.
414
+
415
+ 7. You may place library facilities that are a work based on the
416
+ Library side-by-side in a single library together with other library
417
+ facilities not covered by this License, and distribute such a combined
418
+ library, provided that the separate distribution of the work based on
419
+ the Library and of the other library facilities is otherwise
420
+ permitted, and provided that you do these two things:
421
+
422
+ a) Accompany the combined library with a copy of the same work
423
+ based on the Library, uncombined with any other library
424
+ facilities. This must be distributed under the terms of the
425
+ Sections above.
426
+
427
+ b) Give prominent notice with the combined library of the fact
428
+ that part of it is a work based on the Library, and explaining
429
+ where to find the accompanying uncombined form of the same work.
430
+
431
+ 8. You may not copy, modify, sublicense, link with, or distribute
432
+ the Library except as expressly provided under this License. Any
433
+ attempt otherwise to copy, modify, sublicense, link with, or
434
+ distribute the Library is void, and will automatically terminate your
435
+ rights under this License. However, parties who have received copies,
436
+ or rights, from you under this License will not have their licenses
437
+ terminated so long as such parties remain in full compliance.
438
+
439
+ 9. You are not required to accept this License, since you have not
440
+ signed it. However, nothing else grants you permission to modify or
441
+ distribute the Library or its derivative works. These actions are
442
+ prohibited by law if you do not accept this License. Therefore, by
443
+ modifying or distributing the Library (or any work based on the
444
+ Library), you indicate your acceptance of this License to do so, and
445
+ all its terms and conditions for copying, distributing or modifying
446
+ the Library or works based on it.
447
+
448
+ 10. Each time you redistribute the Library (or any work based on the
449
+ Library), the recipient automatically receives a license from the
450
+ original licensor to copy, distribute, link with or modify the Library
451
+ subject to these terms and conditions. You may not impose any further
452
+ restrictions on the recipients' exercise of the rights granted herein.
453
+ You are not responsible for enforcing compliance by third parties with
454
+ this License.
455
+
456
+ 11. If, as a consequence of a court judgment or allegation of patent
457
+ infringement or for any other reason (not limited to patent issues),
458
+ conditions are imposed on you (whether by court order, agreement or
459
+ otherwise) that contradict the conditions of this License, they do not
460
+ excuse you from the conditions of this License. If you cannot
461
+ distribute so as to satisfy simultaneously your obligations under this
462
+ License and any other pertinent obligations, then as a consequence you
463
+ may not distribute the Library at all. For example, if a patent
464
+ license would not permit royalty-free redistribution of the Library by
465
+ all those who receive copies directly or indirectly through you, then
466
+ the only way you could satisfy both it and this License would be to
467
+ refrain entirely from distribution of the Library.
468
+
469
+ If any portion of this section is held invalid or unenforceable under any
470
+ particular circumstance, the balance of the section is intended to apply,
471
+ and the section as a whole is intended to apply in other circumstances.
472
+
473
+ It is not the purpose of this section to induce you to infringe any
474
+ patents or other property right claims or to contest validity of any
475
+ such claims; this section has the sole purpose of protecting the
476
+ integrity of the free software distribution system which is
477
+ implemented by public license practices. Many people have made
478
+ generous contributions to the wide range of software distributed
479
+ through that system in reliance on consistent application of that
480
+ system; it is up to the author/donor to decide if he or she is willing
481
+ to distribute software through any other system and a licensee cannot
482
+ impose that choice.
483
+
484
+ This section is intended to make thoroughly clear what is believed to
485
+ be a consequence of the rest of this License.
486
+
487
+ 12. If the distribution and/or use of the Library is restricted in
488
+ certain countries either by patents or by copyrighted interfaces, the
489
+ original copyright holder who places the Library under this License may add
490
+ an explicit geographical distribution limitation excluding those countries,
491
+ so that distribution is permitted only in or among countries not thus
492
+ excluded. In such case, this License incorporates the limitation as if
493
+ written in the body of this License.
494
+
495
+ 13. The Free Software Foundation may publish revised and/or new
496
+ versions of the Lesser General Public License from time to time.
497
+ Such new versions will be similar in spirit to the present version,
498
+ but may differ in detail to address new problems or concerns.
499
+
500
+ Each version is given a distinguishing version number. If the Library
501
+ specifies a version number of this License which applies to it and
502
+ "any later version", you have the option of following the terms and
503
+ conditions either of that version or of any later version published by
504
+ the Free Software Foundation. If the Library does not specify a
505
+ license version number, you may choose any version ever published by
506
+ the Free Software Foundation.
507
+
508
+ 14. If you wish to incorporate parts of the Library into other free
509
+ programs whose distribution conditions are incompatible with these,
510
+ write to the author to ask for permission. For software which is
511
+ copyrighted by the Free Software Foundation, write to the Free
512
+ Software Foundation; we sometimes make exceptions for this. Our
513
+ decision will be guided by the two goals of preserving the free status
514
+ of all derivatives of our free software and of promoting the sharing
515
+ and reuse of software generally.
516
+
517
+ NO WARRANTY
518
+
519
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
520
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
521
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
522
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
523
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
524
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
525
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
526
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
527
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
528
+
529
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
530
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
531
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
532
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
533
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
534
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
535
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
536
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
537
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
538
+ DAMAGES.
539
+
540
+ END OF TERMS AND CONDITIONS
541
+ ```