dsh-vision-router 3.2.1 → 3.4.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 +5 -4
- package/README.zh.md +20 -3
- package/THIRD_PARTY_NOTICES.md +60 -0
- package/assets/licenses/llvm-mingw-LICENSE.txt +279 -0
- package/assets/licenses/mingw-w64-runtime-COPYING.txt +265 -0
- package/assets/licenses/ncnn-LICENSE.txt +86 -0
- package/docs/architecture/dsh-support-window.md +25 -6
- package/docs/compatibility/dsh-0.2.2-rc3-audit.md +131 -0
- package/docs/releases/v3.2.2.md +25 -0
- package/docs/releases/v3.3.0.md +34 -0
- package/docs/releases/v3.4.0.md +41 -0
- package/index.js +313 -169
- package/lib/client.js +4 -4
- package/lib/core-primitives.js +115 -56
- package/lib/dsh-support-window.js +6 -3
- package/lib/maintenance-routes.js +2 -0
- package/lib/managed-tesseract-child.js +33 -0
- package/lib/native-ocr-annotation-risk.js +33 -0
- package/lib/native-ocr-canary.js +156 -0
- package/lib/native-ocr-chemistry-review.js +37 -0
- package/lib/native-ocr-document.js +243 -0
- package/lib/native-ocr-installation.js +17 -0
- package/lib/native-ocr-integrity.js +93 -0
- package/lib/native-ocr-question-labels.js +167 -0
- package/lib/native-ocr-supervisor.js +268 -0
- package/lib/optional-ocr-engines.js +330 -0
- package/lib/optional-ocr-routes.js +87 -0
- package/lib/runtime-reliability.js +7 -0
- package/lib/session-query-readers.js +8 -2
- package/lib/session-vision-attachment-index.js +61 -14
- package/lib/settings-ia-client-prelude.js +56 -2
- package/lib/tesseract-image-preprocess.js +35 -0
- package/lib/trace-vtracer-process-runtime.js +133 -0
- package/lib/trace-vtracer-process.js +43 -0
- package/lib/vision-attachment-handle-runtime.js +11 -2
- package/lib/vision-backend-runtime-policy.js +5 -3
- package/lib/vision-image-input-reader.js +67 -0
- package/lib/vision-image-input-verdict.js +24 -3
- package/lib/vision-tool-runtime-boundary.js +7 -10
- package/lib/vision-tool-stage.js +58 -0
- package/lib/web-capability-boundary.js +4 -0
- package/package.json +5 -4
- package/scripts/install-native-ocr.mjs +144 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
MinGW-w64 runtime licensing
|
|
2
|
+
***************************
|
|
3
|
+
|
|
4
|
+
This program or library was built using MinGW-w64 and statically
|
|
5
|
+
linked against the MinGW-w64 runtime. Some parts of the runtime
|
|
6
|
+
are under licenses which require that the copyright and license
|
|
7
|
+
notices are included when distributing the code in binary form.
|
|
8
|
+
These notices are listed below.
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
========================
|
|
12
|
+
Overall copyright notice
|
|
13
|
+
========================
|
|
14
|
+
|
|
15
|
+
Copyright (c) 2009, 2010, 2011, 2012, 2013 by the mingw-w64 project
|
|
16
|
+
|
|
17
|
+
This license has been certified as open source. It has also been designated
|
|
18
|
+
as GPL compatible by the Free Software Foundation (FSF).
|
|
19
|
+
|
|
20
|
+
Redistribution and use in source and binary forms, with or without
|
|
21
|
+
modification, are permitted provided that the following conditions are met:
|
|
22
|
+
|
|
23
|
+
1. Redistributions in source code must retain the accompanying copyright
|
|
24
|
+
notice, this list of conditions, and the following disclaimer.
|
|
25
|
+
2. Redistributions in binary form must reproduce the accompanying
|
|
26
|
+
copyright notice, this list of conditions, and the following disclaimer
|
|
27
|
+
in the documentation and/or other materials provided with the
|
|
28
|
+
distribution.
|
|
29
|
+
3. Names of the copyright holders must not be used to endorse or promote
|
|
30
|
+
products derived from this software without prior written permission
|
|
31
|
+
from the copyright holders.
|
|
32
|
+
4. The right to distribute this software or to use it for any purpose does
|
|
33
|
+
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
34
|
+
the copyright holders. Use of them is covered by separate agreement
|
|
35
|
+
with the copyright holders.
|
|
36
|
+
5. If any files are modified, you must cause the modified files to carry
|
|
37
|
+
prominent notices stating that you changed the files and the date of
|
|
38
|
+
any change.
|
|
39
|
+
|
|
40
|
+
Disclaimer
|
|
41
|
+
|
|
42
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
43
|
+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
44
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
45
|
+
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
46
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
47
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
48
|
+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
49
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
50
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
51
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
52
|
+
|
|
53
|
+
========================================
|
|
54
|
+
getopt, getopt_long, and getop_long_only
|
|
55
|
+
========================================
|
|
56
|
+
|
|
57
|
+
Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
58
|
+
|
|
59
|
+
Permission to use, copy, modify, and distribute this software for any
|
|
60
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
61
|
+
copyright notice and this permission notice appear in all copies.
|
|
62
|
+
|
|
63
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
64
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
65
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
66
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
67
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
68
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
69
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
70
|
+
|
|
71
|
+
Sponsored in part by the Defense Advanced Research Projects
|
|
72
|
+
Agency (DARPA) and Air Force Research Laboratory, Air Force
|
|
73
|
+
Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
|
74
|
+
|
|
75
|
+
* * * * * * *
|
|
76
|
+
|
|
77
|
+
Copyright (c) 2000 The NetBSD Foundation, Inc.
|
|
78
|
+
All rights reserved.
|
|
79
|
+
|
|
80
|
+
This code is derived from software contributed to The NetBSD Foundation
|
|
81
|
+
by Dieter Baron and Thomas Klausner.
|
|
82
|
+
|
|
83
|
+
Redistribution and use in source and binary forms, with or without
|
|
84
|
+
modification, are permitted provided that the following conditions
|
|
85
|
+
are met:
|
|
86
|
+
1. Redistributions of source code must retain the above copyright
|
|
87
|
+
notice, this list of conditions and the following disclaimer.
|
|
88
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
89
|
+
notice, this list of conditions and the following disclaimer in the
|
|
90
|
+
documentation and/or other materials provided with the distribution.
|
|
91
|
+
|
|
92
|
+
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
93
|
+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
94
|
+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
95
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
96
|
+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
97
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
98
|
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
99
|
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
100
|
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
101
|
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
102
|
+
POSSIBILITY OF SUCH DAMAGE.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
===============================================================
|
|
106
|
+
gdtoa: Converting between IEEE floating point numbers and ASCII
|
|
107
|
+
===============================================================
|
|
108
|
+
|
|
109
|
+
The author of this software is David M. Gay.
|
|
110
|
+
|
|
111
|
+
Copyright (C) 1997, 1998, 1999, 2000, 2001 by Lucent Technologies
|
|
112
|
+
All Rights Reserved
|
|
113
|
+
|
|
114
|
+
Permission to use, copy, modify, and distribute this software and
|
|
115
|
+
its documentation for any purpose and without fee is hereby
|
|
116
|
+
granted, provided that the above copyright notice appear in all
|
|
117
|
+
copies and that both that the copyright notice and this
|
|
118
|
+
permission notice and warranty disclaimer appear in supporting
|
|
119
|
+
documentation, and that the name of Lucent or any of its entities
|
|
120
|
+
not be used in advertising or publicity pertaining to
|
|
121
|
+
distribution of the software without specific, written prior
|
|
122
|
+
permission.
|
|
123
|
+
|
|
124
|
+
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
125
|
+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
|
126
|
+
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
|
|
127
|
+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
128
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
|
129
|
+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
130
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
131
|
+
THIS SOFTWARE.
|
|
132
|
+
|
|
133
|
+
* * * * * * *
|
|
134
|
+
|
|
135
|
+
The author of this software is David M. Gay.
|
|
136
|
+
|
|
137
|
+
Copyright (C) 2005 by David M. Gay
|
|
138
|
+
All Rights Reserved
|
|
139
|
+
|
|
140
|
+
Permission to use, copy, modify, and distribute this software and its
|
|
141
|
+
documentation for any purpose and without fee is hereby granted,
|
|
142
|
+
provided that the above copyright notice appear in all copies and that
|
|
143
|
+
both that the copyright notice and this permission notice and warranty
|
|
144
|
+
disclaimer appear in supporting documentation, and that the name of
|
|
145
|
+
the author or any of his current or former employers not be used in
|
|
146
|
+
advertising or publicity pertaining to distribution of the software
|
|
147
|
+
without specific, written prior permission.
|
|
148
|
+
|
|
149
|
+
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
150
|
+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
|
|
151
|
+
NO EVENT SHALL THE AUTHOR OR ANY OF HIS CURRENT OR FORMER EMPLOYERS BE
|
|
152
|
+
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
|
|
153
|
+
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
154
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
155
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|
156
|
+
SOFTWARE.
|
|
157
|
+
|
|
158
|
+
* * * * * * *
|
|
159
|
+
|
|
160
|
+
The author of this software is David M. Gay.
|
|
161
|
+
|
|
162
|
+
Copyright (C) 2004 by David M. Gay.
|
|
163
|
+
All Rights Reserved
|
|
164
|
+
Based on material in the rest of /netlib/fp/gdota.tar.gz,
|
|
165
|
+
which is copyright (C) 1998, 2000 by Lucent Technologies.
|
|
166
|
+
|
|
167
|
+
Permission to use, copy, modify, and distribute this software and
|
|
168
|
+
its documentation for any purpose and without fee is hereby
|
|
169
|
+
granted, provided that the above copyright notice appear in all
|
|
170
|
+
copies and that both that the copyright notice and this
|
|
171
|
+
permission notice and warranty disclaimer appear in supporting
|
|
172
|
+
documentation, and that the name of Lucent or any of its entities
|
|
173
|
+
not be used in advertising or publicity pertaining to
|
|
174
|
+
distribution of the software without specific, written prior
|
|
175
|
+
permission.
|
|
176
|
+
|
|
177
|
+
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
178
|
+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
|
179
|
+
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
|
|
180
|
+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
181
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
|
182
|
+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
183
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
184
|
+
THIS SOFTWARE.
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
=========================
|
|
188
|
+
Parts of the math library
|
|
189
|
+
=========================
|
|
190
|
+
|
|
191
|
+
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
|
192
|
+
|
|
193
|
+
Developed at SunSoft, a Sun Microsystems, Inc. business.
|
|
194
|
+
Permission to use, copy, modify, and distribute this
|
|
195
|
+
software is freely granted, provided that this notice
|
|
196
|
+
is preserved.
|
|
197
|
+
|
|
198
|
+
* * * * * * *
|
|
199
|
+
|
|
200
|
+
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
|
201
|
+
|
|
202
|
+
Developed at SunPro, a Sun Microsystems, Inc. business.
|
|
203
|
+
Permission to use, copy, modify, and distribute this
|
|
204
|
+
software is freely granted, provided that this notice
|
|
205
|
+
is preserved.
|
|
206
|
+
|
|
207
|
+
* * * * * * *
|
|
208
|
+
|
|
209
|
+
FIXME: Cephes math lib
|
|
210
|
+
Copyright (C) 1984-1998 Stephen L. Moshier
|
|
211
|
+
|
|
212
|
+
It sounds vague, but as to be found at
|
|
213
|
+
<http://lists.debian.org/debian-legal/2004/12/msg00295.html>, it gives an
|
|
214
|
+
impression that the author could be willing to give an explicit
|
|
215
|
+
permission to distribute those files e.g. under a BSD style license. So
|
|
216
|
+
probably there is no problem here, although it could be good to get a
|
|
217
|
+
permission from the author and then add a license into the Cephes files
|
|
218
|
+
in MinGW runtime. At least on follow-up it is marked that debian sees the
|
|
219
|
+
version a-like BSD one. As MinGW.org (where those cephes parts are coming
|
|
220
|
+
from) distributes them now over 6 years, it should be fine.
|
|
221
|
+
|
|
222
|
+
=================================================
|
|
223
|
+
Some string, memory and time conversion functions
|
|
224
|
+
=================================================
|
|
225
|
+
|
|
226
|
+
Copyright © 2005-2020 Rich Felker, et al.
|
|
227
|
+
|
|
228
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
229
|
+
a copy of this software and associated documentation files (the
|
|
230
|
+
"Software"), to deal in the Software without restriction, including
|
|
231
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
232
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
233
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
234
|
+
the following conditions:
|
|
235
|
+
|
|
236
|
+
The above copyright notice and this permission notice shall be
|
|
237
|
+
included in all copies or substantial portions of the Software.
|
|
238
|
+
|
|
239
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
240
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
241
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
242
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
243
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
244
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
245
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
246
|
+
|
|
247
|
+
===================================
|
|
248
|
+
Headers and IDLs imported from Wine
|
|
249
|
+
===================================
|
|
250
|
+
|
|
251
|
+
Some header and IDL files were imported from the Wine project. These files
|
|
252
|
+
are prominent maked in source. Their copyright belongs to contributors and
|
|
253
|
+
they are distributed under LGPL license.
|
|
254
|
+
|
|
255
|
+
Disclaimer
|
|
256
|
+
|
|
257
|
+
This library is free software; you can redistribute it and/or
|
|
258
|
+
modify it under the terms of the GNU Lesser General Public
|
|
259
|
+
License as published by the Free Software Foundation; either
|
|
260
|
+
version 2.1 of the License, or (at your option) any later version.
|
|
261
|
+
|
|
262
|
+
This library is distributed in the hope that it will be useful,
|
|
263
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
264
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
265
|
+
Lesser General Public License for more details.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Tencent is pleased to support the open source community by making ncnn available.
|
|
2
|
+
Copyright (C) 2017 Tencent. All rights reserved.
|
|
3
|
+
If you have downloaded a copy of the ncnn binary from Tencent, please note that the ncnn binary is licensed under the BSD 3-Clause License.
|
|
4
|
+
If you have downloaded a copy of the ncnn source code from Tencent, please note that ncnn source code is licensed under the BSD 3-Clause License, except for the third-party components listed below which are subject to different license terms. Your integration of ncnn into your own projects may require compliance with the BSD 3-Clause License, as well as the other licenses applicable to the third-party components included within ncnn.
|
|
5
|
+
A copy of the BSD 3-Clause License is included in this file.
|
|
6
|
+
|
|
7
|
+
Other dependencies and licenses:
|
|
8
|
+
|
|
9
|
+
Open Source Software Licensed Under the zlib License:
|
|
10
|
+
The below software in this distribution may have been modified by Tencent (“Tencent Modifications”). All Tencent Modifications are Copyright (C) 2017 Tencent.
|
|
11
|
+
----------------------------------------------------------------------------------------
|
|
12
|
+
1. neon_mathfun.h
|
|
13
|
+
Copyright (C) 2011 Julien Pommier
|
|
14
|
+
|
|
15
|
+
2. sse_mathfun.h
|
|
16
|
+
Copyright (C) 2007 Julien Pommier
|
|
17
|
+
|
|
18
|
+
3. avx_mathfun.h
|
|
19
|
+
Copyright (C) 2012 Giovanni Garberoglio
|
|
20
|
+
Interdisciplinary Laboratory for Computational Science (LISC)
|
|
21
|
+
Fondazione Bruno Kessler and University of Trento
|
|
22
|
+
via Sommarive, 18
|
|
23
|
+
I-38123 Trento (Italy)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Terms of the zlib License:
|
|
27
|
+
---------------------------------------------------
|
|
28
|
+
Copyright (c) <year> <copyright holders>
|
|
29
|
+
|
|
30
|
+
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
|
31
|
+
|
|
32
|
+
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
|
33
|
+
|
|
34
|
+
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
|
35
|
+
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
|
36
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
Open Source Software Licensed Under the BSD 2-Clause License:
|
|
41
|
+
The below software in this distribution may have been modified by Tencent (“Tencent Modifications”). All Tencent Modifications are Copyright (C) 2017 Tencent.
|
|
42
|
+
----------------------------------------------------------------------------------------
|
|
43
|
+
1. squeezenet 1.1
|
|
44
|
+
Copyright (c) 2016 Forrest N. Iandola and Matthew W. Moskewicz and Khalid Ashraf and Song Han and William J. Dally and Kurt Keutzer
|
|
45
|
+
All rights reserved.
|
|
46
|
+
|
|
47
|
+
2. caffe.proto master
|
|
48
|
+
All contributions by the University of California:
|
|
49
|
+
Copyright (c) 2014-2017 The Regents of the University of California (Regents)
|
|
50
|
+
All rights reserved.
|
|
51
|
+
|
|
52
|
+
All other contributions:
|
|
53
|
+
Copyright (c) 2014-2017, the respective contributors
|
|
54
|
+
All rights reserved.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
Terms of the BSD 2-Clause License:
|
|
58
|
+
--------------------------------------------------------------------
|
|
59
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
60
|
+
|
|
61
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
62
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
63
|
+
|
|
64
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
Open Source Software Licensed Under the BSD 3-Clause License:
|
|
69
|
+
The below software in this distribution may have been modified by Tencent (“Tencent Modifications”). All Tencent Modifications are Copyright (C) 2017 Tencent.
|
|
70
|
+
----------------------------------------------------------------------------------------
|
|
71
|
+
1. android.toolchain.cmake master
|
|
72
|
+
Copyright (c) 2010-2011, Ethan Rublee
|
|
73
|
+
Copyright (c) 2011-2014, Andrey Kamaev
|
|
74
|
+
All rights reserved.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
Terms of the BSD 3-Clause License:
|
|
78
|
+
--------------------------------------------------------------------
|
|
79
|
+
|
|
80
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
81
|
+
|
|
82
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
83
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
84
|
+
Neither the name of [copyright holder] nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
85
|
+
|
|
86
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DVR 3.2 DSH Host support window
|
|
2
2
|
|
|
3
|
-
**Status: 3.2.
|
|
3
|
+
**Status: DVR 3.2.x support policy; this document is not a release or npm publication assertion.** The previous DVR 3.1.x support policy remains available in [historical support window](dsh-support-window-3.1-historical.md).
|
|
4
4
|
|
|
5
5
|
| Policy | DVR 3.2 candidate |
|
|
6
6
|
|---|---|
|
|
@@ -14,15 +14,34 @@ The prior DVR 3.1.4 release retains its historic support contract. The new suppo
|
|
|
14
14
|
|
|
15
15
|
The published `engines.dsh` train allows later 0.2.x releases, including
|
|
16
16
|
prereleases, as a compatibility *admission policy*; it cannot guarantee their
|
|
17
|
-
runtime behavior. Doctor
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
runtime behavior. Doctor distinguishes **admitted**, **exact-release verified** and **recommended** Hosts.
|
|
18
|
+
The exact-source/real-Host gates have verified `0.2.1-rc.5`, `0.2.2-rc.1`,
|
|
19
|
+
`0.2.2-rc.2` and `0.2.2-rc.3` on the exercised Node 24 matrix. The conservative
|
|
20
|
+
**recommended** Host remains `0.2.2-rc.1`: verification of a newer prerelease
|
|
21
|
+
is not, by itself, a recommendation to upgrade. Future/unpinned 0.2.x Hosts
|
|
22
|
+
and Node 25+ are marked `unknown`, not `ok`, until separately validated. This does not rewrite the Host admission range
|
|
21
23
|
or block a user whose separately reviewed deployment works.
|
|
22
24
|
|
|
25
|
+
The active compatibility CI is organized by responsibility: the **minimum Host**
|
|
26
|
+
(`0.2.1-rc.5`), the **recommended Host** (`0.2.2-rc.1`) and the **latest
|
|
27
|
+
qualified RC** (`0.2.2-rc.3`) retain normal automated gates. The RC2 full
|
|
28
|
+
matrix is preserved for explicit `workflow_dispatch` replay, with its prior
|
|
29
|
+
immutable verification recorded; it no longer duplicates every PR/main run.
|
|
30
|
+
All three Host gates now run as reusable workflows inside the branch-protected
|
|
31
|
+
`CI` for **Host-impacting changes**: minimum RC5, recommended RC1, and latest RC3.
|
|
32
|
+
Both mandatory `contract` checks wait for their aggregate results and explicitly
|
|
33
|
+
reject failure, cancellation, skipped Host verification, or failed classification.
|
|
34
|
+
A reviewed trusted-base classifier alone can exempt Markdown-only documentation
|
|
35
|
+
or a version-only package change, and in that case all three heavy gates must be
|
|
36
|
+
skipped, never faked as passed. An unexpected/unknown path fails closed to heavy.
|
|
37
|
+
The RC1/RC3 concurrency groups are distinct from CI to prevent self-cancellation.
|
|
38
|
+
This is a CI scheduling policy, not a withdrawal of RC2 compatibility evidence.
|
|
39
|
+
When the recommendation or latest RC advances, move the active lane instead
|
|
40
|
+
of permanently adding another full automatic historical matrix.
|
|
41
|
+
|
|
23
42
|
## Core Host ownership
|
|
24
43
|
|
|
25
|
-
|
|
44
|
+
The verified DSH 0.2.1-rc.5 and DSH 0.2.2 release candidates own webStartup trustedHosts and all Connection authorization. DVR 3.2 retires the cross-generation Connection config override and private readiness provider. However, a real Windows six-order foreign-plugin test caught HTTP 405 from generic connection.rpc.handle() when the Connection provider Fiber omitted a webServer injection. Thus DVR retains one **minimal ordering-only patch**: Connection inject: [webStartup, webServer], with **no config/trustedHosts override**. DSH still exclusively owns cookies, /api, WebSocket, trust authority and all other Connection config. Never extend, guess or bypass the official trust list.
|
|
26
45
|
|
|
27
46
|
Keep the independent modules/webServer activation dependency and DVR disabled:false recompose guard until each replacement is independently proven; their root causes are not fixed merely by raising the Host floor.
|
|
28
47
|
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# DSH 0.2.2-rc.3 immutable-source compatibility audit
|
|
2
|
+
|
|
3
|
+
## Release identity
|
|
4
|
+
|
|
5
|
+
- Official prerelease: [dsh-v0.2.2-rc.3](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.2-rc.3), published **2026-11-13 07:56:55 UTC**.
|
|
6
|
+
- Immutable Git tag target: `38a6a5c965aa99ab525161efb7cc5cf1fe62fced`; RC2 predecessor `ddac96760b6edf8fa0fe17cbdcf0b512f4c12b2c`.
|
|
7
|
+
- DVR candidate baseline: `33429bd39d7302daec1ceb842f3fca145cbea96b` (v3.2.1). This document and PR do **not** authorize merge or publication.
|
|
8
|
+
|
|
9
|
+
## Audited RC2 → RC3 changes
|
|
10
|
+
|
|
11
|
+
The six upstream commits include an experimental DeepSeek website chat-export importer (new Host route, Session persistence, attachments, authenticated Web upload, client sidebar slot), Windows desktop update restart working-directory fix, CI bubblewrap archive cache changes, and version bumps. This is **not** evidence that the pre-existing DVR Session/Settings/Host contracts remain compatible.
|
|
12
|
+
|
|
13
|
+
- **Host/service injection:** the importer registers its own Remote/connection route, scoped services and bundle. Confirm it neither shadows DVR local Settings routes nor changes plugin mount/dispose ordering.
|
|
14
|
+
- **Session and attachment:** imported sessions and images use upstream-owned persistence. DVR must not take ownership of pending files, import archives, Session binding or attachment binaries. Verify existing event index/guard repair with the exact RC3 SessionStore and no cross-session attachment leakage.
|
|
15
|
+
- **Web/client:** upstream adds `sidebar.session.action` HOC and a third directory-picker flow slot. Verify DVR's composer Vision ON/OFF, sidebar and Settings injection do not interfere with those owners. Imported Session continuation is an upstream feature, not a DVR-owned migration.
|
|
16
|
+
- **Desktop/OS:** Windows installer restart-status fix changes the child process working directory. Run Windows 24.9/24.21 and macOS Desktop smoke; do not extrapolate from the Windows installer fix to runtime correctness.
|
|
17
|
+
- **Security:** do not inherit upstream CI caches or run untrusted fork code; all DSH source checkouts are pinned to the tag target, read-only and credential-free.
|
|
18
|
+
|
|
19
|
+
## Candidate verification
|
|
20
|
+
|
|
21
|
+
The `dsh-022-rc3-host-gate.yml` reusable workflow is called by branch-protected `CI` for every PR (and separately allows manual replay) with immutable RC3 source on Linux/macOS/Windows, Node 24.9/24.21, source/host-sharp contracts, upstream Session batch tests, DVR event/attachment integration, Agent selection order, peer admission, proxy egress, real Chromium cold Vision/mixed attachments/Settings save-reload-readback, bundle recomposition, packed candidate CLI installation, Desktop Host injection and multi-plugin ordering. The legacy Host floor lanes remain independent; RC3 requires Node >=24.9, and DVR 3.2 does not advertise Node 22 support.
|
|
22
|
+
|
|
23
|
+
Historical published npm `dsh-vision-router@3.2.1` is a separate **advisory-only** diagnostic. The historical package allowlist was amended to admit immutable 3.2.1; an early harness failure must never be misreported as a tested incompatibility. A successful candidate tarball install does not certify third-party Desktop generation installation, and no source CI result can rewrite a published artifact.
|
|
24
|
+
|
|
25
|
+
**Status: the initial RC3 head `5b994d6` passed all six exact-Host jobs; each later PR head must pass its own normal CI before final acceptance.** Do not call RC3 compatible until the real Host, Desktop, Chromium, adversarial and contract jobs pass. Investigate first failing product assertions before considering a code fix. No release or merge is authorized.
|
|
26
|
+
|
|
27
|
+
## Maintainable qualification policy
|
|
28
|
+
|
|
29
|
+
Normal CI retains the supported minimum Host, conservative recommended RC1,
|
|
30
|
+
and latest qualified RC3 as distinct evidence boundaries. The validated RC2
|
|
31
|
+
workflow remains available through explicit manual replay, not every main push
|
|
32
|
+
or ordinary PR. This avoids retiring RC2's evidence while preventing each
|
|
33
|
+
upstream prerelease from permanently adding another six-job automatic matrix.
|
|
34
|
+
Doctor reports RC1/RC2/RC3 as exact-version verified only when runtime
|
|
35
|
+
attachment capabilities are confirmed on Node 24; recommending an upgrade
|
|
36
|
+
remains a separate policy decision, with RC1 still recommended. New DSH
|
|
37
|
+
versions do not become verified solely by satisfying `engines.dsh`.
|
|
38
|
+
|
|
39
|
+
## Required fail-closed acceptance
|
|
40
|
+
The latest exact RC is invoked as a reusable workflow by the existing `CI` workflow.
|
|
41
|
+
Both branch-protected `contract (24.9.0)` and `contract (24.21.0)`
|
|
42
|
+
checks depend on the complete six-job Host gate, explicitly failing if it
|
|
43
|
+
fails, is cancelled, or is skipped. They cannot silently succeed because a
|
|
44
|
+
separate optional Host workflow failed or was never triggered. The reusable
|
|
45
|
+
workflow has an isolated concurrency group to avoid canceling its CI caller.
|
|
46
|
+
This preserves existing required check names without repository ruleset edits.
|
|
47
|
+
|
|
48
|
+
This previously invoked the latest Host for documentation-only PRs. The
|
|
49
|
+
three-tier convergence below adds a trusted-base impact classifier: only
|
|
50
|
+
non-runtime Markdown and version-only package metadata can skip the heavy
|
|
51
|
+
Host matrices. An unknown, failed or inconsistent classifier fails closed.
|
|
52
|
+
|
|
53
|
+
## Required coverage of minimum, recommended, and latest
|
|
54
|
+
|
|
55
|
+
The follow-up CI convergence on the same draft PR removes the older
|
|
56
|
+
standalone automatic RC5/RC1 gates, retaining their full immutable reusable
|
|
57
|
+
workflows and manual replay. Protected `CI` now qualifies all three named
|
|
58
|
+
Host contracts for runtime or unclassified changes. The two protected
|
|
59
|
+
`contract` statuses require all three successful results; a failed or missing
|
|
60
|
+
trusted-base impact classification fails closed. Only reviewed Markdown-only
|
|
61
|
+
documentation and version-only package metadata can bypass these expensive
|
|
62
|
+
matrices. The decision is made using the classifier at the PR's protected base
|
|
63
|
+
commit, not modifiable PR-head code. Non-host changes still run the protected
|
|
64
|
+
Node 24 `test` and `contract` checks.
|
|
65
|
+
|
|
66
|
+
The change deliberately avoids doubling the Host job count: it moves the
|
|
67
|
+
previous separate minimum/recommended matrices under the existing required
|
|
68
|
+
CI rather than running new copies. Exact qualification and original run URLs
|
|
69
|
+
remain preserved by immutable refs in this audit/PR history.
|
|
70
|
+
|
|
71
|
+
## Durable acceptance evidence ledger
|
|
72
|
+
|
|
73
|
+
This source-controlled summary remains in the Git history after hosted
|
|
74
|
+
Actions logs expire. It preserves verified commit and source identities,
|
|
75
|
+
verification scope, official run links and outcome; it is not a substitute
|
|
76
|
+
for permanently archived full logs or a guarantee for untested workflows.
|
|
77
|
+
|
|
78
|
+
| Verified DVR candidate | Immutable Host identity | Real verification | Recorded outcome |
|
|
79
|
+
| --- | --- | --- | --- |
|
|
80
|
+
| [4dfba17fadfbe21305083054a44dcbbc773212ef](https://github.com/ysr666/dsh-vision-router/commit/4dfba17fadfbe21305083054a44dcbbc773212ef) | DSH 0.2.2-rc.3 @ 38a6a5c965aa99ab525161efb7cc5cf1fe62fced | [Protected CI run #43416019566](https://github.com/ysr666/dsh-vision-router/actions/runs/43416019566): six exact RC3 Host jobs (Linux/macOS/Windows, real Chromium, Windows Node 24.9/24.21), core/contract checks | 16 of 16 workflows succeeded |
|
|
81
|
+
| [4dfba17fadfbe21305083054a44dcbbc773212ef](https://github.com/ysr666/dsh-vision-router/commit/4dfba17fadfbe21305083054a44dcbbc773212ef) | DSH 0.2.1-rc.5 @ b830ec950faba0a46dda564be3e2d854afed94f1 | [Minimum Host run #43416019215](https://github.com/ysr666/dsh-vision-router/actions/runs/43416019215) | Success |
|
|
82
|
+
| [4dfba17fadfbe21305083054a44dcbbc773212ef](https://github.com/ysr666/dsh-vision-router/commit/4dfba17fadfbe21305083054a44dcbbc773212ef) | DSH 0.2.2-rc.1 @ 66491b05e3f05ad35bcdd4f6cd7ed26041d9e3db | [Recommended Host run #43416019244](https://github.com/ysr666/dsh-vision-router/actions/runs/43416019244) | Success |
|
|
83
|
+
| [d4ea0f973a9daeb8376fcc6abcad9af9396a1fd6](https://github.com/ysr666/dsh-vision-router/commit/d4ea0f973a9daeb8376fcc6abcad9af9396a1fd6) | DSH 0.2.2-rc.3 | [Chromium job #131828321004](https://github.com/ysr666/dsh-vision-router/actions/runs/43408342770/job/131828321004): published npm 3.2.1, packed candidate, source, three recompositions each | All three install forms succeeded |
|
|
84
|
+
|
|
85
|
+
**Evidence boundary:** the new three-tier protected CI changes postdate the
|
|
86
|
+
above successfully verified heads and must independently pass on their final
|
|
87
|
+
commit. These immutable prior successes do not pre-certify a newer PR head.
|
|
88
|
+
|
|
89
|
+
## Required process for the next upstream Host RC
|
|
90
|
+
|
|
91
|
+
1. Pin the *official immutable* upstream tag target and review Host ABI,
|
|
92
|
+
Session, Web, model selection, image ownership, and security changes.
|
|
93
|
+
2. Promote the new latest exact workflow through protected CI. Keep the old
|
|
94
|
+
latest source pin and run references available for manual replay, but do
|
|
95
|
+
not permanently duplicate its full automatic matrix.
|
|
96
|
+
3. Preserve both minimum and recommended exact Host obligations until an
|
|
97
|
+
explicit supported-window policy change is approved.
|
|
98
|
+
4. Run real three-OS, Chromium and Windows Node 24.9/24.21 Desktop gates,
|
|
99
|
+
with fail-closed trusted-base classification and required contract checks.
|
|
100
|
+
5. Update Doctor's exact verified-version evidence only after a successful
|
|
101
|
+
immutable real-Host gate; update the recommended version separately.
|
|
102
|
+
6. Record the **tested DVR SHA**, **DSH SHA**, **CI run/job IDs**, supported
|
|
103
|
+
scope, limitations and findings in this ledger and in the PR description.
|
|
104
|
+
A passing semver range or a source-only pin is never runtime proof.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## No-worktree trust-boundary hardening (CodeQL follow-up)
|
|
108
|
+
|
|
109
|
+
The protected `CI` impact classifier no longer uses `actions/checkout` at
|
|
110
|
+
all. In a fresh empty Git repository it fetches only the trusted base SHA
|
|
111
|
+
and the official base-repository `refs/pull/<number>/head`, verifies that
|
|
112
|
+
ref is **exactly** the event's pinned PR head SHA, and fails closed if the
|
|
113
|
+
PR moved. It extracts the classifier script from the immutable base Git tree,
|
|
114
|
+
while the untrusted head supplies only `package.json` data and path diffs.
|
|
115
|
+
No worktree, PR action or installation script from the head is executed.
|
|
116
|
+
No credentials or privileged GitHub token are needed for this public repo.
|
|
117
|
+
The source-controlled security contract tests assert the absence of checkout
|
|
118
|
+
and the SHA fence. The new commit must separately pass its own GitHub Actions
|
|
119
|
+
and CodeQL annotations; prior green checks are not proof the alert is closed.
|
|
120
|
+
|
|
121
|
+
## API-only Host impact classification (CodeQL follow-up)
|
|
122
|
+
|
|
123
|
+
The CodeQL medium rule models PR-head Git fetch as well as `actions/checkout`.
|
|
124
|
+
The protected CI classifier no longer fetches PR Git refs or checks out a
|
|
125
|
+
worktree. Instead its read-only token (`contents: read` and `pull-requests:
|
|
126
|
+
read`) retrieves pinned contents and complete changed-path metadata from
|
|
127
|
+
GitHub API. It checks the PR base/head SHAs both before and after reading the
|
|
128
|
+
files, refuses missing/incomplete results, treats every rename/copy/unknown
|
|
129
|
+
status and PRs above 100 files as **heavy**, and only executes the classifier
|
|
130
|
+
from the immutable trusted base. SHA races/API failures fail protected CI
|
|
131
|
+
closed. New head CI and CodeQL alert adjudication are separate obligations.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# v3.2.2 — Attachment reliability and native trace isolation / 附件可靠性与原生描摹隔离
|
|
2
|
+
|
|
3
|
+
**Status / 状态:** This is a curated **release candidate**, not evidence of publication. Only the protected Release workflow, a matching immutable GitHub Release, npm dist-tag and package provenance establish a published version. / 本文是**待发布候选说明**,并不代表已发布。正式发布以受保护 Release 工作流、GitHub Release、npm 标签与包体来源证明为准。
|
|
4
|
+
|
|
5
|
+
## Changes since v3.2.1 / 相对 v3.2.1 的变化
|
|
6
|
+
|
|
7
|
+
- **Attachment-ID and cold Session recovery (#839–#844, #846, #850–#852):** The full vision task's deadline starts before the Host's cold attachment log lookup, image reads, normalization, and backend capability preflight. Pending Host promises are raced against cancellation, and Host/user abort is passed into backend attempts instead of being mistaken for provider failure. Session-derived attachment authority is checked against the owning Session, with cleanup and privacy-safe stage diagnostics. / 识图总时限从附件恢复前开始计时,覆盖会话日志查询、图像处理及后端预检;即使旧 Host Promise 不响应取消,工具也能按预算退出。取消信号继续传到模型请求,跨 Session 不得借用附件权限,诊断日志不输出原始附件 ID。
|
|
8
|
+
- **Cache authority hardening (#838):** Strengthen attachment/cache access boundaries and regression coverage so a prior content hash or cached answer cannot authorize another Session's attachment. / 加固缓存及附件权限边界,缓存命中不得替代当前会话的有效授权。
|
|
9
|
+
- **Native VTracer fault containment (#847–#848):** Successful WASM workers exit naturally rather than being terminated immediately after posting a message. A bounded child process (3 active, up to 8 queued) isolates remaining native process faults; abort, abnormal exit, forged or oversized SVG results fail closed. The public vision_trace tool remains. The pinned VTracer engine does not change; isolated-process startup adds latency (about 90–100 ms per trace in a small macOS benchmark) and should be considered by performance-sensitive users. / 成功的 Worker 自然退出;原生计算由限流子进程承载,异常退出、取消或不合规 SVG 不会直接破坏主 Host。公开工具不变,新增进程启动开销。
|
|
10
|
+
- **Windows reliability (#845):** Repair Windows-specific package/cache handling and associated image-input verdict checks. / 修复 Windows 打包、缓存和图片输入判断相关兼容问题。
|
|
11
|
+
|
|
12
|
+
**Issue #841 scope:** A genuine source-level deadline/cancellation weakness was fixed, but the reporting user's precise Windows ~120-second stall was **not independently reproduced**. A slow but responsive remote vision model can still legitimately use the configured task budget (default 120 seconds). Do not claim that all possible 120-second backend stalls are eliminated. / 已修复确定存在的超时与取消缺陷,但未独立复现报告者现场;默认 120 秒预算内的慢模型调用仍可能耗时,不能宣传为彻底消除所有长等待。
|
|
13
|
+
|
|
14
|
+
## Verification / 验证
|
|
15
|
+
|
|
16
|
+
- Windows Node 24.21.0: integrated source build and all five underlying test stages — **2,053 passed, 9 skipped, 0 failed**; no orphan native trace children. / Windows 集成测试通过,未留残余子进程。
|
|
17
|
+
- Actual package tarball unpacked and loaded independently: colored and grayscale tracing passed; installed official Electron-as-Node plus real DSH 0.2.2-rc.1 and rc.3 NativeToolExecutor exercised hot/cold uploaded attachments, cross-Session denial and tracing — **8/8** packaged-Host combinations passed. / 以实际 npm 候选包加载并通过官方 Electron 运行时、真实 rc.1/rc.3 Host 的联合测试。
|
|
18
|
+
- The exact release commit must complete the protected full CI and Release workflow; passing a candidate PR is necessary but **not sufficient** for publication. / 仍必须对最终 main 提交执行完整受保护发布门禁。
|
|
19
|
+
|
|
20
|
+
## Compatibility and safe upgrade / 兼容与安全升级
|
|
21
|
+
|
|
22
|
+
- Keep DSH **>=0.2.1-rc.5 <0.3.0-0**, Node.js **>=24.9.0**, and existing Host-owned Session/attachment/Settings authority. No support-floor relaxation or automatic profile migration. / 最低版本与 Host 权限归属不变,不自动升级或迁移 Profile。
|
|
23
|
+
- Before upgrading, back up the DSH profile, relevant attachments and important Session history; run the read-only `doctor --upgrade-preflight`; preserve the v3.2.1 rollback option. / 升级前备份重要资料并只读预检,保留回退到 3.2.1 的办法。
|
|
24
|
+
- Cloud visual inference still sends image content to the selected remote provider unless strict local-only mode is enabled. "Free/no key" does not mean offline. / 云端识图仍会将图像送往供应商;免 Key 不等于离线。
|
|
25
|
+
- Third-party generated Desktop installers remain outside the official cross-platform acceptance evidence. / 第三方代际安装器不包含在官方验收结论中。
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# v3.3.0 — Native OCR route and resilient visual tools / 原生 OCR 路线与视觉工具稳定性
|
|
2
|
+
|
|
3
|
+
**Publication evidence / 发布状态核实:** This document describes the v3.3.0 release contents; its presence alone never establishes publication. Check the protected Release workflow on the exact merged `main` SHA, immutable GitHub Release/tag, npm `latest` and matching tarball identity/provenance. / 本文记录 3.3.0 的更新内容;是否正式发布须以受保护 Release 工作流、不可变 GitHub Release/tag、npm `latest` 与包体来源证明为准,不能仅凭本文判断。
|
|
4
|
+
|
|
5
|
+
## Why a minor version? / 为什么升为次版本?
|
|
6
|
+
|
|
7
|
+
This release includes a new owner-installed native OCR engine route and a substantial set of security, execution-lifecycle and Host compatibility improvements compared with the last published `v3.2.1`. The previously prepared `v3.2.2` metadata was **never released**; these changes are consolidated into `v3.3.0`, rather than shipping a patch version with an expanded native OCR capability. / 相比已发布的 v3.2.1,增加原生 OCR 路线和较大范围的稳定性/安全增强。未正式发布的 3.2.2 候选不单独上线,统一作为 3.3.0。
|
|
8
|
+
|
|
9
|
+
## Changes since v3.2.1 / 主要变更
|
|
10
|
+
|
|
11
|
+
- **PP-OCRv6 small / ncnn local CPU OCR (#853–#854, #836):** In `vision_ocr(auto)`, prefer a locally **owner-installed and SHA-verified** worker on **macOS ARM64** or **Windows x64**, if the pinned executable and five model assets are actually installed. Otherwise the existing Tesseract compatibility path remains available. Explicit `engine=tesseract` / `engine=vision` still overrides auto. Uncertain but nonempty ncnn text can now request an existing consent- and deadline-controlled vision review; under strict local-only or failed review, the local transcript is returned with uncertainty preserved. / 已安装并校验的本地 ncnn 优先;未安装时仍走兼容路线;显式引擎选择不变;低置信度核查严格受权限、熔断与共同超时限制。
|
|
12
|
+
- **Tesseract compatibility for subtitle text (#853):** Add PSM 7 single-line analysis and bounded grayscale, inversion/scale retry for hard light-on-dark captions, without presenting Tesseract as the primary native OCR target. / 兼容路径支持单行模式与适度反色、放大重试。
|
|
13
|
+
- **Attachment/Session safety and whole-task deadlines (#852, integrating #838–#846, #850–#851):** Unify `attachmentIds` and file paths through Session-authorized image processing, remove cross-Session cache bypasses, start the shared deadline before cold Host lookups, abort noncooperative operations on deadline, and propagate cancellation through provider attempts. Preserve privacy-safe phase diagnostics. / 统一附件读取、修复跨会话缓存授权风险、提前启动统一时限并正确传递取消信号,不泄露完整附件 ID。
|
|
14
|
+
- **Native VTracer containment (#852, incorporating #847–#848):** Move the native/WASM trace job into a bounded child process; accept SVG only after a clean child exit, and fail closed on abnormal exit, timeout, forged/oversized output. This changes process overhead, not the tool API. / VTracer 由受限子进程隔离,避免原生错误直接终止 Host;会有一定启动开销。
|
|
15
|
+
- **Windows reliability (#852, incorporating #845):** Address atomic cache rename and portable tarball identity/test behavior. / 修复 Windows 文件锁、缓存写入与打包回归测试问题。
|
|
16
|
+
- **Release gate repair (3.3.0):** Run the newly introduced native-OCR `node --test` suite as actual tests (not arguments to `license:check`); require both dependency and native-asset notice/license checks in the protected Release metadata gate. Add immutable tests to catch this divergence. / 恢复此前误漏跑的原生 OCR 回归入口,同时保持原生许可证检查不可绕过。
|
|
17
|
+
|
|
18
|
+
## Evidence and known limits / 验证与未覆盖边界
|
|
19
|
+
|
|
20
|
+
- #852 integrated head passed **15/15** GitHub Actions workflows; #853 and #854 each have independent CI evidence. Mac ARM64 real installed PP-OCRv6/ncnn `vision_ocr(auto)` recognized generated Chinese-caption PNG fixtures with both dark-on-light and light-on-dark text correctly. This does **not** represent the original Issue #836 reporter files; the exact reporter's images were not available.
|
|
21
|
+
- Earlier Windows x64 native-worker builds and real Host `vision_ocr(auto)` tests were documented, but a freshly installed Windows worker was not available in the later isolated acceptance session. Actual current 3.3.0 final CI and Release gates must pass; **do not describe this candidate as publicly released before then**.
|
|
22
|
+
- Some legacy Tesseract inputs still misread stylized captions; the engine remains a compatibility fallback, not the native first choice. The previous Issue #841 reporter's specific 120-second environment was not independently reproduced, despite correcting demonstrable deadline/cancellation weaknesses.
|
|
23
|
+
- **Native OCR redistribution is a separate gate:** The npm package includes JavaScript, installer, license texts and integrity metadata, but **does not bundle PP-OCRv6 model weights or native executables**. The lab audit `quality/native-ocr-license-audit-LAB.md` explicitly marks native archive redistribution as **not yet cleared** (clean CI, final notices/SBOM, hosting and platform verification pending). Do **not** attach lab worker/model archives to this GitHub Release or advertise an automatic public download until those gates pass. / npm 仅分发源码相关 JS、安装器和许可文本;原生可执行文件和模型不随 npm 发布,离线包尚未获公开分发放行。
|
|
24
|
+
|
|
25
|
+
## Compatibility and privacy / 兼容与隐私
|
|
26
|
+
|
|
27
|
+
- **DSH:** `>=0.2.1-rc.5 <0.3.0-0`. **Node.js:** `>=24.9.0`. The exact recommended reviewed Host is DSH `0.2.2-rc.1`; rc.2/rc.3 have separate exact-source acceptance evidence. Older rc.2/rc.3 *from the 0.2.1 line* are below the current floor and must not be forced into loading the plugin.
|
|
28
|
+
- **No automatic profile migration**, no change to Host-owned Session/attachment trust boundaries. Back up the DSH profile, Settings, attachments and important Session history; run read-only `doctor --upgrade-preflight`; keep a known-good `v3.2.1` rollback.
|
|
29
|
+
- **Privacy:** Fresh installs still enable an anonymous cloud vision fallback. Images and related request metadata may leave the machine unless strict local-only mode is enabled. Installing a verified native worker does **not** imply the entire vision chain is offline.
|
|
30
|
+
- Third-party generated Desktop installers are not independently qualified merely by the official Host gate. / 第三方打包安装器需要单独验收。
|
|
31
|
+
|
|
32
|
+
## Publication acceptance / 最终发布门禁
|
|
33
|
+
|
|
34
|
+
The reviewed 3.3.0 candidate must pass all CI checks (Node 24.9/24.21 and exact DSH Host matrix), frozen-lockfile install, source/runtime build verification, reproducible package, complete native OCR regression suite, native+VTracer license checks, publication channel `latest`, pre-tag npm registry identity check, immutable main-target tag, npm trusted publishing/provenance, and a post-release npm/GitHub package hash check. No partial pass or green former PR alone authorizes publication. / 最终版本必须以完整 CI、受保护发布流水线和 npm/GitHub 包体哈希一致为准。
|