bailinghub 0.9.3 → 0.9.4

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.
Files changed (1036) hide show
  1. package/.dockerignore +1 -0
  2. package/.gitignore +1 -0
  3. package/.npmignore +1 -0
  4. package/Dockerfile +1 -0
  5. package/README.en.md +6 -6
  6. package/README.md +6 -6
  7. package/SECURITY.md +3 -3
  8. package/THIRD_PARTY_NOTICES.md +7 -7
  9. package/docker-compose.images.yml +2 -2
  10. package/docs/CHANGELOG.en.md +12 -1
  11. package/docs/CHANGELOG.md +12 -1
  12. package/docs/DOCX_DEPENDENCY.en.md +26 -0
  13. package/docs/DOCX_DEPENDENCY.md +26 -0
  14. package/docs/IMPLEMENTATION_STATUS.en.md +19 -15
  15. package/docs/IMPLEMENTATION_STATUS.md +19 -15
  16. package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
  17. package/docs/INDEPENDENT_VALIDATION.md +4 -4
  18. package/docs/NOTIFICATION_DURABILITY.en.md +47 -0
  19. package/docs/NOTIFICATION_DURABILITY.md +47 -0
  20. package/docs/OPERATIONS.en.md +6 -2
  21. package/docs/OPERATIONS.md +6 -2
  22. package/docs/README.en.md +4 -0
  23. package/docs/README.md +4 -0
  24. package/docs/RELEASE_NOTES_NEXT.en.md +3 -3
  25. package/docs/RELEASE_NOTES_NEXT.md +3 -3
  26. package/docs/RELEASE_NOTES_v0.9.4.en.md +42 -0
  27. package/docs/RELEASE_NOTES_v0.9.4.md +42 -0
  28. package/docs/UPGRADE_v0.9.4.en.md +57 -0
  29. package/docs/UPGRADE_v0.9.4.md +57 -0
  30. package/node_modules/@xmldom/xmldom/CHANGELOG.md +533 -0
  31. package/node_modules/@xmldom/xmldom/LICENSE +8 -0
  32. package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  33. package/node_modules/@xmldom/xmldom/index.d.ts +96 -0
  34. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
  35. package/node_modules/@xmldom/xmldom/lib/conventions.js +214 -0
  36. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
  37. package/node_modules/@xmldom/xmldom/lib/dom.js +2266 -0
  38. package/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
  39. package/node_modules/@xmldom/xmldom/lib/index.js +4 -0
  40. package/node_modules/@xmldom/xmldom/lib/sax.js +683 -0
  41. package/node_modules/@xmldom/xmldom/package.json +75 -0
  42. package/node_modules/@xmldom/xmldom/readme.md +356 -0
  43. package/node_modules/base64-js/LICENSE +21 -0
  44. package/node_modules/base64-js/README.md +34 -0
  45. package/node_modules/base64-js/base64js.min.js +1 -0
  46. package/node_modules/base64-js/index.d.ts +3 -0
  47. package/node_modules/base64-js/index.js +150 -0
  48. package/node_modules/base64-js/package.json +47 -0
  49. package/node_modules/bluebird/LICENSE +21 -0
  50. package/node_modules/bluebird/README.md +51 -0
  51. package/node_modules/bluebird/changelog.md +1 -0
  52. package/node_modules/bluebird/js/browser/bluebird.core.js +3739 -0
  53. package/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
  54. package/node_modules/bluebird/js/browser/bluebird.js +5581 -0
  55. package/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
  56. package/node_modules/bluebird/js/release/any.js +21 -0
  57. package/node_modules/bluebird/js/release/assert.js +55 -0
  58. package/node_modules/bluebird/js/release/async.js +161 -0
  59. package/node_modules/bluebird/js/release/bind.js +67 -0
  60. package/node_modules/bluebird/js/release/bluebird.js +11 -0
  61. package/node_modules/bluebird/js/release/call_get.js +123 -0
  62. package/node_modules/bluebird/js/release/cancel.js +129 -0
  63. package/node_modules/bluebird/js/release/catch_filter.js +42 -0
  64. package/node_modules/bluebird/js/release/context.js +69 -0
  65. package/node_modules/bluebird/js/release/debuggability.js +916 -0
  66. package/node_modules/bluebird/js/release/direct_resolve.js +46 -0
  67. package/node_modules/bluebird/js/release/each.js +30 -0
  68. package/node_modules/bluebird/js/release/errors.js +116 -0
  69. package/node_modules/bluebird/js/release/es5.js +80 -0
  70. package/node_modules/bluebird/js/release/filter.js +12 -0
  71. package/node_modules/bluebird/js/release/finally.js +111 -0
  72. package/node_modules/bluebird/js/release/generators.js +223 -0
  73. package/node_modules/bluebird/js/release/join.js +168 -0
  74. package/node_modules/bluebird/js/release/map.js +168 -0
  75. package/node_modules/bluebird/js/release/method.js +55 -0
  76. package/node_modules/bluebird/js/release/nodeback.js +51 -0
  77. package/node_modules/bluebird/js/release/nodeify.js +58 -0
  78. package/node_modules/bluebird/js/release/promise.js +773 -0
  79. package/node_modules/bluebird/js/release/promise_array.js +184 -0
  80. package/node_modules/bluebird/js/release/promisify.js +314 -0
  81. package/node_modules/bluebird/js/release/props.js +118 -0
  82. package/node_modules/bluebird/js/release/queue.js +73 -0
  83. package/node_modules/bluebird/js/release/race.js +49 -0
  84. package/node_modules/bluebird/js/release/reduce.js +172 -0
  85. package/node_modules/bluebird/js/release/schedule.js +61 -0
  86. package/node_modules/bluebird/js/release/settle.js +43 -0
  87. package/node_modules/bluebird/js/release/some.js +148 -0
  88. package/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
  89. package/node_modules/bluebird/js/release/thenables.js +86 -0
  90. package/node_modules/bluebird/js/release/timers.js +93 -0
  91. package/node_modules/bluebird/js/release/using.js +226 -0
  92. package/node_modules/bluebird/js/release/util.js +379 -0
  93. package/node_modules/bluebird/package.json +76 -0
  94. package/node_modules/core-util-is/LICENSE +19 -0
  95. package/node_modules/core-util-is/README.md +3 -0
  96. package/node_modules/core-util-is/lib/util.js +107 -0
  97. package/node_modules/core-util-is/package.json +38 -0
  98. package/node_modules/dingbat-to-unicode/README.md +79 -0
  99. package/node_modules/dingbat-to-unicode/dist/dingbats.d.ts +8 -0
  100. package/node_modules/dingbat-to-unicode/dist/dingbats.js +1066 -0
  101. package/node_modules/dingbat-to-unicode/dist/index.d.ts +7 -0
  102. package/node_modules/dingbat-to-unicode/dist/index.js +44 -0
  103. package/node_modules/dingbat-to-unicode/package.json +39 -0
  104. package/node_modules/duck/LICENSE +22 -0
  105. package/node_modules/duck/README.md +184 -0
  106. package/node_modules/duck/index.js +267 -0
  107. package/node_modules/duck/makefile +4 -0
  108. package/node_modules/duck/package.json +23 -0
  109. package/node_modules/duck/test/duck.test.js +160 -0
  110. package/node_modules/immediate/LICENSE.txt +20 -0
  111. package/node_modules/immediate/README.md +93 -0
  112. package/node_modules/immediate/dist/immediate.js +75 -0
  113. package/node_modules/immediate/dist/immediate.min.js +1 -0
  114. package/node_modules/immediate/lib/browser.js +69 -0
  115. package/node_modules/immediate/lib/index.js +73 -0
  116. package/node_modules/immediate/package.json +42 -0
  117. package/node_modules/inherits/LICENSE +16 -0
  118. package/node_modules/inherits/README.md +42 -0
  119. package/node_modules/inherits/inherits.js +9 -0
  120. package/node_modules/inherits/inherits_browser.js +27 -0
  121. package/node_modules/inherits/package.json +29 -0
  122. package/node_modules/isarray/.npmignore +1 -0
  123. package/node_modules/isarray/.travis.yml +4 -0
  124. package/node_modules/isarray/Makefile +6 -0
  125. package/node_modules/isarray/README.md +60 -0
  126. package/node_modules/isarray/component.json +19 -0
  127. package/node_modules/isarray/index.js +5 -0
  128. package/node_modules/isarray/package.json +45 -0
  129. package/node_modules/isarray/test.js +20 -0
  130. package/node_modules/jszip/.codeclimate.yml +16 -0
  131. package/node_modules/jszip/.editorconfig +8 -0
  132. package/node_modules/jszip/.eslintrc.js +43 -0
  133. package/node_modules/jszip/.github/workflows/pr.yaml +58 -0
  134. package/node_modules/jszip/.jekyll-metadata +0 -0
  135. package/node_modules/jszip/.travis.yml +17 -0
  136. package/node_modules/jszip/CHANGES.md +204 -0
  137. package/node_modules/jszip/LICENSE.markdown +651 -0
  138. package/node_modules/jszip/README.markdown +33 -0
  139. package/node_modules/jszip/deps.js +37 -0
  140. package/node_modules/jszip/dist/jszip.js +11577 -0
  141. package/node_modules/jszip/dist/jszip.min.js +13 -0
  142. package/node_modules/jszip/graph.svg +601 -0
  143. package/node_modules/jszip/index.d.ts +330 -0
  144. package/node_modules/jszip/lib/base64.js +106 -0
  145. package/node_modules/jszip/lib/compressedObject.js +74 -0
  146. package/node_modules/jszip/lib/compressions.js +14 -0
  147. package/node_modules/jszip/lib/crc32.js +77 -0
  148. package/node_modules/jszip/lib/defaults.js +11 -0
  149. package/node_modules/jszip/lib/external.js +18 -0
  150. package/node_modules/jszip/lib/flate.js +85 -0
  151. package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
  152. package/node_modules/jszip/lib/generate/index.js +57 -0
  153. package/node_modules/jszip/lib/index.js +55 -0
  154. package/node_modules/jszip/lib/license_header.js +11 -0
  155. package/node_modules/jszip/lib/load.js +88 -0
  156. package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
  157. package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
  158. package/node_modules/jszip/lib/nodejsUtils.js +57 -0
  159. package/node_modules/jszip/lib/object.js +384 -0
  160. package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
  161. package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
  162. package/node_modules/jszip/lib/reader/DataReader.js +116 -0
  163. package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
  164. package/node_modules/jszip/lib/reader/StringReader.js +38 -0
  165. package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
  166. package/node_modules/jszip/lib/reader/readerFor.js +28 -0
  167. package/node_modules/jszip/lib/signature.js +7 -0
  168. package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
  169. package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
  170. package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
  171. package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
  172. package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
  173. package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
  174. package/node_modules/jszip/lib/support.js +38 -0
  175. package/node_modules/jszip/lib/utf8.js +275 -0
  176. package/node_modules/jszip/lib/utils.js +501 -0
  177. package/node_modules/jszip/lib/zipEntries.js +261 -0
  178. package/node_modules/jszip/lib/zipEntry.js +293 -0
  179. package/node_modules/jszip/lib/zipObject.js +133 -0
  180. package/node_modules/jszip/package.json +67 -0
  181. package/node_modules/jszip/sponsors.md +21 -0
  182. package/node_modules/jszip/tsconfig.json +101 -0
  183. package/node_modules/jszip/vendor/FileSaver.js +247 -0
  184. package/node_modules/lie/README.md +62 -0
  185. package/node_modules/lie/dist/lie.js +350 -0
  186. package/node_modules/lie/dist/lie.min.js +1 -0
  187. package/node_modules/lie/dist/lie.polyfill.js +358 -0
  188. package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
  189. package/node_modules/lie/lib/browser.js +273 -0
  190. package/node_modules/lie/lib/index.js +298 -0
  191. package/node_modules/lie/license.md +7 -0
  192. package/node_modules/lie/lie.d.ts +244 -0
  193. package/node_modules/lie/package.json +69 -0
  194. package/node_modules/lie/polyfill.js +4 -0
  195. package/node_modules/lop/LICENSE +22 -0
  196. package/node_modules/lop/README.md +248 -0
  197. package/node_modules/lop/index.js +18 -0
  198. package/node_modules/lop/lib/StringSource.js +53 -0
  199. package/node_modules/lop/lib/Token.js +7 -0
  200. package/node_modules/lop/lib/TokenIterator.js +28 -0
  201. package/node_modules/lop/lib/bottom-up.js +128 -0
  202. package/node_modules/lop/lib/errors.js +22 -0
  203. package/node_modules/lop/lib/lazy-iterators.js +81 -0
  204. package/node_modules/lop/lib/parser.js +11 -0
  205. package/node_modules/lop/lib/parsing-results.js +103 -0
  206. package/node_modules/lop/lib/regex-tokeniser.js +70 -0
  207. package/node_modules/lop/lib/rules.js +313 -0
  208. package/node_modules/lop/lib/testing.js +69 -0
  209. package/node_modules/lop/makefile +4 -0
  210. package/node_modules/lop/package.json +24 -0
  211. package/node_modules/lop/test/StringSource.test.js +21 -0
  212. package/node_modules/lop/test/TokenIterator.test.js +17 -0
  213. package/node_modules/lop/test/Tokeniser.js +50 -0
  214. package/node_modules/lop/test/Tokeniser.test.js +38 -0
  215. package/node_modules/lop/test/bottom-up.test.js +187 -0
  216. package/node_modules/lop/test/errors.test.js +36 -0
  217. package/node_modules/lop/test/lazy-iterators.test.js +53 -0
  218. package/node_modules/lop/test/lop.test.js +27 -0
  219. package/node_modules/lop/test/regex-tokeniser.test.js +114 -0
  220. package/node_modules/lop/test/results.test.js +8 -0
  221. package/node_modules/lop/test/rules.test.js +617 -0
  222. package/node_modules/mammoth/LICENSE +22 -0
  223. package/node_modules/mammoth/SOURCE.json +57 -0
  224. package/node_modules/mammoth/browser/docx/files.js +14 -0
  225. package/node_modules/mammoth/browser/unzip.js +12 -0
  226. package/node_modules/mammoth/lib/document-to-html.js +469 -0
  227. package/node_modules/mammoth/lib/documents.js +254 -0
  228. package/node_modules/mammoth/lib/docx/body-reader.js +798 -0
  229. package/node_modules/mammoth/lib/docx/comments-reader.js +31 -0
  230. package/node_modules/mammoth/lib/docx/content-types-reader.js +58 -0
  231. package/node_modules/mammoth/lib/docx/document-xml-reader.js +30 -0
  232. package/node_modules/mammoth/lib/docx/docx-reader.js +226 -0
  233. package/node_modules/mammoth/lib/docx/files.js +80 -0
  234. package/node_modules/mammoth/lib/docx/notes-reader.js +28 -0
  235. package/node_modules/mammoth/lib/docx/numbering-xml.js +111 -0
  236. package/node_modules/mammoth/lib/docx/office-xml-reader.js +73 -0
  237. package/node_modules/mammoth/lib/docx/relationships-reader.js +43 -0
  238. package/node_modules/mammoth/lib/docx/style-map.js +75 -0
  239. package/node_modules/mammoth/lib/docx/styles-reader.js +90 -0
  240. package/node_modules/mammoth/lib/docx/uris.js +21 -0
  241. package/node_modules/mammoth/lib/html/ast.js +51 -0
  242. package/node_modules/mammoth/lib/html/index.js +41 -0
  243. package/node_modules/mammoth/lib/html/simplify.js +88 -0
  244. package/node_modules/mammoth/lib/images.js +31 -0
  245. package/node_modules/mammoth/lib/index.d.ts +86 -0
  246. package/node_modules/mammoth/lib/index.js +111 -0
  247. package/node_modules/mammoth/lib/options-reader.js +107 -0
  248. package/node_modules/mammoth/lib/promises.js +42 -0
  249. package/node_modules/mammoth/lib/raw-text.js +14 -0
  250. package/node_modules/mammoth/lib/results.js +72 -0
  251. package/node_modules/mammoth/lib/style-reader.js +365 -0
  252. package/node_modules/mammoth/lib/styles/document-matchers.js +100 -0
  253. package/node_modules/mammoth/lib/styles/html-paths.js +75 -0
  254. package/node_modules/mammoth/lib/styles/parser/tokeniser.js +30 -0
  255. package/node_modules/mammoth/lib/transforms.js +62 -0
  256. package/node_modules/mammoth/lib/underline.js +11 -0
  257. package/node_modules/mammoth/lib/unzip.js +20 -0
  258. package/node_modules/mammoth/lib/writers/html-writer.js +159 -0
  259. package/node_modules/mammoth/lib/writers/index.js +14 -0
  260. package/node_modules/mammoth/lib/writers/markdown-writer.js +163 -0
  261. package/node_modules/mammoth/lib/xml/index.js +8 -0
  262. package/node_modules/mammoth/lib/xml/nodes.js +70 -0
  263. package/node_modules/mammoth/lib/xml/reader.js +69 -0
  264. package/node_modules/mammoth/lib/xml/writer.js +61 -0
  265. package/node_modules/mammoth/lib/xml/xmldom.js +23 -0
  266. package/node_modules/mammoth/lib/zipfile.js +72 -0
  267. package/node_modules/mammoth/package.json +39 -0
  268. package/node_modules/mammoth/upstream-package.json +64 -0
  269. package/node_modules/option/.npmignore +1 -0
  270. package/node_modules/option/LICENSE +22 -0
  271. package/node_modules/option/README.md +101 -0
  272. package/node_modules/option/index.js +88 -0
  273. package/node_modules/option/package.json +23 -0
  274. package/node_modules/option/test/options.test.js +174 -0
  275. package/node_modules/pako/CHANGELOG.md +164 -0
  276. package/node_modules/pako/LICENSE +21 -0
  277. package/node_modules/pako/README.md +191 -0
  278. package/node_modules/pako/dist/pako.js +6818 -0
  279. package/node_modules/pako/dist/pako.min.js +1 -0
  280. package/node_modules/pako/dist/pako_deflate.js +3997 -0
  281. package/node_modules/pako/dist/pako_deflate.min.js +1 -0
  282. package/node_modules/pako/dist/pako_inflate.js +3300 -0
  283. package/node_modules/pako/dist/pako_inflate.min.js +1 -0
  284. package/node_modules/pako/index.js +14 -0
  285. package/node_modules/pako/lib/deflate.js +400 -0
  286. package/node_modules/pako/lib/inflate.js +423 -0
  287. package/node_modules/pako/lib/utils/common.js +105 -0
  288. package/node_modules/pako/lib/utils/strings.js +187 -0
  289. package/node_modules/pako/lib/zlib/README +59 -0
  290. package/node_modules/pako/lib/zlib/adler32.js +51 -0
  291. package/node_modules/pako/lib/zlib/constants.js +68 -0
  292. package/node_modules/pako/lib/zlib/crc32.js +59 -0
  293. package/node_modules/pako/lib/zlib/deflate.js +1874 -0
  294. package/node_modules/pako/lib/zlib/gzheader.js +58 -0
  295. package/node_modules/pako/lib/zlib/inffast.js +345 -0
  296. package/node_modules/pako/lib/zlib/inflate.js +1556 -0
  297. package/node_modules/pako/lib/zlib/inftrees.js +343 -0
  298. package/node_modules/pako/lib/zlib/messages.js +32 -0
  299. package/node_modules/pako/lib/zlib/trees.js +1222 -0
  300. package/node_modules/pako/lib/zlib/zstream.js +47 -0
  301. package/node_modules/pako/package.json +44 -0
  302. package/node_modules/path-is-absolute/index.js +20 -0
  303. package/node_modules/path-is-absolute/license +21 -0
  304. package/node_modules/path-is-absolute/package.json +43 -0
  305. package/node_modules/path-is-absolute/readme.md +59 -0
  306. package/node_modules/process-nextick-args/index.js +45 -0
  307. package/node_modules/process-nextick-args/license.md +19 -0
  308. package/node_modules/process-nextick-args/package.json +25 -0
  309. package/node_modules/process-nextick-args/readme.md +18 -0
  310. package/node_modules/readable-stream/.travis.yml +34 -0
  311. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  312. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  313. package/node_modules/readable-stream/LICENSE +47 -0
  314. package/node_modules/readable-stream/README.md +58 -0
  315. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  316. package/node_modules/readable-stream/duplex-browser.js +1 -0
  317. package/node_modules/readable-stream/duplex.js +1 -0
  318. package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  319. package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  320. package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  321. package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  322. package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
  323. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
  324. package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
  325. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  326. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  327. package/node_modules/readable-stream/package.json +52 -0
  328. package/node_modules/readable-stream/passthrough.js +1 -0
  329. package/node_modules/readable-stream/readable-browser.js +7 -0
  330. package/node_modules/readable-stream/readable.js +19 -0
  331. package/node_modules/readable-stream/transform.js +1 -0
  332. package/node_modules/readable-stream/writable-browser.js +1 -0
  333. package/node_modules/readable-stream/writable.js +8 -0
  334. package/node_modules/safe-buffer/LICENSE +21 -0
  335. package/node_modules/safe-buffer/README.md +584 -0
  336. package/node_modules/safe-buffer/index.d.ts +187 -0
  337. package/node_modules/safe-buffer/index.js +62 -0
  338. package/node_modules/safe-buffer/package.json +37 -0
  339. package/node_modules/setimmediate/LICENSE.txt +20 -0
  340. package/node_modules/setimmediate/package.json +30 -0
  341. package/node_modules/setimmediate/setImmediate.js +186 -0
  342. package/node_modules/string_decoder/.travis.yml +50 -0
  343. package/node_modules/string_decoder/LICENSE +48 -0
  344. package/node_modules/string_decoder/README.md +47 -0
  345. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  346. package/node_modules/string_decoder/package.json +31 -0
  347. package/node_modules/underscore/LICENSE +22 -0
  348. package/node_modules/underscore/README.md +34 -0
  349. package/node_modules/underscore/amd/_baseCreate.js +21 -0
  350. package/node_modules/underscore/amd/_baseIteratee.js +15 -0
  351. package/node_modules/underscore/amd/_cb.js +12 -0
  352. package/node_modules/underscore/amd/_chainResult.js +10 -0
  353. package/node_modules/underscore/amd/_collectNonEnumProps.js +42 -0
  354. package/node_modules/underscore/amd/_createAssigner.js +24 -0
  355. package/node_modules/underscore/amd/_createEscaper.js +21 -0
  356. package/node_modules/underscore/amd/_createIndexFinder.js +30 -0
  357. package/node_modules/underscore/amd/_createPredicateIndexFinder.js +18 -0
  358. package/node_modules/underscore/amd/_createReduce.js +30 -0
  359. package/node_modules/underscore/amd/_createSizePropertyCheck.js +13 -0
  360. package/node_modules/underscore/amd/_deepGet.js +15 -0
  361. package/node_modules/underscore/amd/_escapeMap.js +15 -0
  362. package/node_modules/underscore/amd/_executeBound.js +16 -0
  363. package/node_modules/underscore/amd/_flatten.js +32 -0
  364. package/node_modules/underscore/amd/_getByteLength.js +8 -0
  365. package/node_modules/underscore/amd/_getLength.js +8 -0
  366. package/node_modules/underscore/amd/_group.js +18 -0
  367. package/node_modules/underscore/amd/_has.js +10 -0
  368. package/node_modules/underscore/amd/_hasObjectTag.js +7 -0
  369. package/node_modules/underscore/amd/_isArrayLike.js +11 -0
  370. package/node_modules/underscore/amd/_isBufferLike.js +9 -0
  371. package/node_modules/underscore/amd/_keyInObj.js +11 -0
  372. package/node_modules/underscore/amd/_methodFingerprint.js +44 -0
  373. package/node_modules/underscore/amd/_optimizeCb.js +27 -0
  374. package/node_modules/underscore/amd/_setup.js +70 -0
  375. package/node_modules/underscore/amd/_shallowProperty.js +12 -0
  376. package/node_modules/underscore/amd/_stringTagBug.js +19 -0
  377. package/node_modules/underscore/amd/_tagTester.js +13 -0
  378. package/node_modules/underscore/amd/_toBufferView.js +15 -0
  379. package/node_modules/underscore/amd/_toPath.js +11 -0
  380. package/node_modules/underscore/amd/_unescapeMap.js +8 -0
  381. package/node_modules/underscore/amd/after.js +14 -0
  382. package/node_modules/underscore/amd/allKeys.js +15 -0
  383. package/node_modules/underscore/amd/before.js +18 -0
  384. package/node_modules/underscore/amd/bind.js +15 -0
  385. package/node_modules/underscore/amd/bindAll.js +19 -0
  386. package/node_modules/underscore/amd/chain.js +12 -0
  387. package/node_modules/underscore/amd/chunk.js +17 -0
  388. package/node_modules/underscore/amd/clone.js +11 -0
  389. package/node_modules/underscore/amd/compact.js +10 -0
  390. package/node_modules/underscore/amd/compose.js +18 -0
  391. package/node_modules/underscore/amd/constant.js +12 -0
  392. package/node_modules/underscore/amd/contains.js +12 -0
  393. package/node_modules/underscore/amd/countBy.js +12 -0
  394. package/node_modules/underscore/amd/create.js +14 -0
  395. package/node_modules/underscore/amd/debounce.js +43 -0
  396. package/node_modules/underscore/amd/defaults.js +8 -0
  397. package/node_modules/underscore/amd/defer.js +9 -0
  398. package/node_modules/underscore/amd/delay.js +13 -0
  399. package/node_modules/underscore/amd/difference.js +14 -0
  400. package/node_modules/underscore/amd/each.js +25 -0
  401. package/node_modules/underscore/amd/escape.js +8 -0
  402. package/node_modules/underscore/amd/every.js +17 -0
  403. package/node_modules/underscore/amd/extend.js +8 -0
  404. package/node_modules/underscore/amd/extendOwn.js +10 -0
  405. package/node_modules/underscore/amd/filter.js +15 -0
  406. package/node_modules/underscore/amd/find.js +12 -0
  407. package/node_modules/underscore/amd/findIndex.js +8 -0
  408. package/node_modules/underscore/amd/findKey.js +15 -0
  409. package/node_modules/underscore/amd/findLastIndex.js +8 -0
  410. package/node_modules/underscore/amd/findWhere.js +11 -0
  411. package/node_modules/underscore/amd/first.js +13 -0
  412. package/node_modules/underscore/amd/flatten.js +11 -0
  413. package/node_modules/underscore/amd/functions.js +14 -0
  414. package/node_modules/underscore/amd/get.js +14 -0
  415. package/node_modules/underscore/amd/groupBy.js +11 -0
  416. package/node_modules/underscore/amd/has.js +19 -0
  417. package/node_modules/underscore/amd/identity.js +10 -0
  418. package/node_modules/underscore/amd/index-default.js +12 -0
  419. package/node_modules/underscore/amd/index.js +154 -0
  420. package/node_modules/underscore/amd/indexBy.js +11 -0
  421. package/node_modules/underscore/amd/indexOf.js +11 -0
  422. package/node_modules/underscore/amd/initial.js +12 -0
  423. package/node_modules/underscore/amd/intersection.js +22 -0
  424. package/node_modules/underscore/amd/invert.js +15 -0
  425. package/node_modules/underscore/amd/invoke.js +28 -0
  426. package/node_modules/underscore/amd/isArguments.js +19 -0
  427. package/node_modules/underscore/amd/isArray.js +9 -0
  428. package/node_modules/underscore/amd/isArrayBuffer.js +7 -0
  429. package/node_modules/underscore/amd/isBoolean.js +10 -0
  430. package/node_modules/underscore/amd/isDataView.js +17 -0
  431. package/node_modules/underscore/amd/isDate.js +7 -0
  432. package/node_modules/underscore/amd/isElement.js +10 -0
  433. package/node_modules/underscore/amd/isEmpty.js +18 -0
  434. package/node_modules/underscore/amd/isEqual.js +133 -0
  435. package/node_modules/underscore/amd/isError.js +7 -0
  436. package/node_modules/underscore/amd/isFinite.js +10 -0
  437. package/node_modules/underscore/amd/isFunction.js +18 -0
  438. package/node_modules/underscore/amd/isMap.js +7 -0
  439. package/node_modules/underscore/amd/isMatch.js +17 -0
  440. package/node_modules/underscore/amd/isNaN.js +10 -0
  441. package/node_modules/underscore/amd/isNull.js +10 -0
  442. package/node_modules/underscore/amd/isNumber.js +7 -0
  443. package/node_modules/underscore/amd/isObject.js +11 -0
  444. package/node_modules/underscore/amd/isRegExp.js +7 -0
  445. package/node_modules/underscore/amd/isSet.js +7 -0
  446. package/node_modules/underscore/amd/isString.js +7 -0
  447. package/node_modules/underscore/amd/isSymbol.js +7 -0
  448. package/node_modules/underscore/amd/isTypedArray.js +16 -0
  449. package/node_modules/underscore/amd/isUndefined.js +10 -0
  450. package/node_modules/underscore/amd/isWeakMap.js +7 -0
  451. package/node_modules/underscore/amd/isWeakSet.js +7 -0
  452. package/node_modules/underscore/amd/iteratee.js +13 -0
  453. package/node_modules/underscore/amd/keys.js +17 -0
  454. package/node_modules/underscore/amd/last.js +13 -0
  455. package/node_modules/underscore/amd/lastIndexOf.js +9 -0
  456. package/node_modules/underscore/amd/map.js +18 -0
  457. package/node_modules/underscore/amd/mapObject.js +19 -0
  458. package/node_modules/underscore/amd/matcher.js +14 -0
  459. package/node_modules/underscore/amd/max.js +30 -0
  460. package/node_modules/underscore/amd/memoize.js +17 -0
  461. package/node_modules/underscore/amd/min.js +30 -0
  462. package/node_modules/underscore/amd/mixin.js +18 -0
  463. package/node_modules/underscore/amd/negate.js +12 -0
  464. package/node_modules/underscore/amd/noop.js +8 -0
  465. package/node_modules/underscore/amd/now.js +10 -0
  466. package/node_modules/underscore/amd/object.js +20 -0
  467. package/node_modules/underscore/amd/omit.js +20 -0
  468. package/node_modules/underscore/amd/once.js +9 -0
  469. package/node_modules/underscore/amd/pairs.js +17 -0
  470. package/node_modules/underscore/amd/partial.js +25 -0
  471. package/node_modules/underscore/amd/partition.js +11 -0
  472. package/node_modules/underscore/amd/pick.js +25 -0
  473. package/node_modules/underscore/amd/pipe.js +13 -0
  474. package/node_modules/underscore/amd/pluck.js +10 -0
  475. package/node_modules/underscore/amd/property.js +14 -0
  476. package/node_modules/underscore/amd/propertyOf.js +13 -0
  477. package/node_modules/underscore/amd/random.js +14 -0
  478. package/node_modules/underscore/amd/range.js +27 -0
  479. package/node_modules/underscore/amd/reduce.js +9 -0
  480. package/node_modules/underscore/amd/reduceRight.js +8 -0
  481. package/node_modules/underscore/amd/reject.js +10 -0
  482. package/node_modules/underscore/amd/rest.js +12 -0
  483. package/node_modules/underscore/amd/restArguments.js +33 -0
  484. package/node_modules/underscore/amd/result.js +25 -0
  485. package/node_modules/underscore/amd/sample.js +27 -0
  486. package/node_modules/underscore/amd/shuffle.js +10 -0
  487. package/node_modules/underscore/amd/size.js +11 -0
  488. package/node_modules/underscore/amd/some.js +17 -0
  489. package/node_modules/underscore/amd/sortBy.js +26 -0
  490. package/node_modules/underscore/amd/sortedIndex.js +18 -0
  491. package/node_modules/underscore/amd/tap.js +13 -0
  492. package/node_modules/underscore/amd/template.js +103 -0
  493. package/node_modules/underscore/amd/templateSettings.js +13 -0
  494. package/node_modules/underscore/amd/throttle.js +51 -0
  495. package/node_modules/underscore/amd/times.js +13 -0
  496. package/node_modules/underscore/amd/toArray.js +18 -0
  497. package/node_modules/underscore/amd/toPath.js +12 -0
  498. package/node_modules/underscore/amd/underscore-array-methods.js +30 -0
  499. package/node_modules/underscore/amd/underscore.js +29 -0
  500. package/node_modules/underscore/amd/unescape.js +8 -0
  501. package/node_modules/underscore/amd/union.js +11 -0
  502. package/node_modules/underscore/amd/uniq.js +37 -0
  503. package/node_modules/underscore/amd/uniqueId.js +13 -0
  504. package/node_modules/underscore/amd/unzip.js +17 -0
  505. package/node_modules/underscore/amd/values.js +16 -0
  506. package/node_modules/underscore/amd/where.js +11 -0
  507. package/node_modules/underscore/amd/without.js +10 -0
  508. package/node_modules/underscore/amd/wrap.js +12 -0
  509. package/node_modules/underscore/amd/zip.js +9 -0
  510. package/node_modules/underscore/cjs/_baseCreate.js +20 -0
  511. package/node_modules/underscore/cjs/_baseIteratee.js +19 -0
  512. package/node_modules/underscore/cjs/_cb.js +12 -0
  513. package/node_modules/underscore/cjs/_chainResult.js +8 -0
  514. package/node_modules/underscore/cjs/_collectNonEnumProps.js +42 -0
  515. package/node_modules/underscore/cjs/_createAssigner.js +20 -0
  516. package/node_modules/underscore/cjs/_createEscaper.js +19 -0
  517. package/node_modules/underscore/cjs/_createIndexFinder.js +30 -0
  518. package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +17 -0
  519. package/node_modules/underscore/cjs/_createReduce.js +30 -0
  520. package/node_modules/underscore/cjs/_createSizePropertyCheck.js +11 -0
  521. package/node_modules/underscore/cjs/_deepGet.js +11 -0
  522. package/node_modules/underscore/cjs/_escapeMap.js +11 -0
  523. package/node_modules/underscore/cjs/_executeBound.js +15 -0
  524. package/node_modules/underscore/cjs/_flatten.js +33 -0
  525. package/node_modules/underscore/cjs/_getByteLength.js +6 -0
  526. package/node_modules/underscore/cjs/_getLength.js +6 -0
  527. package/node_modules/underscore/cjs/_group.js +17 -0
  528. package/node_modules/underscore/cjs/_has.js +8 -0
  529. package/node_modules/underscore/cjs/_hasObjectTag.js +5 -0
  530. package/node_modules/underscore/cjs/_isArrayLike.js +10 -0
  531. package/node_modules/underscore/cjs/_isBufferLike.js +8 -0
  532. package/node_modules/underscore/cjs/_keyInObj.js +7 -0
  533. package/node_modules/underscore/cjs/_methodFingerprint.js +44 -0
  534. package/node_modules/underscore/cjs/_optimizeCb.js +23 -0
  535. package/node_modules/underscore/cjs/_setup.js +66 -0
  536. package/node_modules/underscore/cjs/_shallowProperty.js +8 -0
  537. package/node_modules/underscore/cjs/_stringTagBug.js +18 -0
  538. package/node_modules/underscore/cjs/_tagTester.js +11 -0
  539. package/node_modules/underscore/cjs/_toBufferView.js +13 -0
  540. package/node_modules/underscore/cjs/_toPath.js +10 -0
  541. package/node_modules/underscore/cjs/_unescapeMap.js +7 -0
  542. package/node_modules/underscore/cjs/after.js +10 -0
  543. package/node_modules/underscore/cjs/allKeys.js +15 -0
  544. package/node_modules/underscore/cjs/before.js +14 -0
  545. package/node_modules/underscore/cjs/bind.js +15 -0
  546. package/node_modules/underscore/cjs/bindAll.js +19 -0
  547. package/node_modules/underscore/cjs/chain.js +10 -0
  548. package/node_modules/underscore/cjs/chunk.js +15 -0
  549. package/node_modules/underscore/cjs/clone.js +11 -0
  550. package/node_modules/underscore/cjs/compact.js +8 -0
  551. package/node_modules/underscore/cjs/compose.js +14 -0
  552. package/node_modules/underscore/cjs/constant.js +8 -0
  553. package/node_modules/underscore/cjs/contains.js +12 -0
  554. package/node_modules/underscore/cjs/countBy.js +11 -0
  555. package/node_modules/underscore/cjs/create.js +13 -0
  556. package/node_modules/underscore/cjs/debounce.js +42 -0
  557. package/node_modules/underscore/cjs/defaults.js +7 -0
  558. package/node_modules/underscore/cjs/defer.js +9 -0
  559. package/node_modules/underscore/cjs/delay.js +11 -0
  560. package/node_modules/underscore/cjs/difference.js +15 -0
  561. package/node_modules/underscore/cjs/each.js +25 -0
  562. package/node_modules/underscore/cjs/escape.js +7 -0
  563. package/node_modules/underscore/cjs/every.js +17 -0
  564. package/node_modules/underscore/cjs/extend.js +7 -0
  565. package/node_modules/underscore/cjs/extendOwn.js +9 -0
  566. package/node_modules/underscore/cjs/filter.js +14 -0
  567. package/node_modules/underscore/cjs/find.js +12 -0
  568. package/node_modules/underscore/cjs/findIndex.js +6 -0
  569. package/node_modules/underscore/cjs/findKey.js +14 -0
  570. package/node_modules/underscore/cjs/findLastIndex.js +6 -0
  571. package/node_modules/underscore/cjs/findWhere.js +10 -0
  572. package/node_modules/underscore/cjs/first.js +11 -0
  573. package/node_modules/underscore/cjs/flatten.js +9 -0
  574. package/node_modules/underscore/cjs/functions.js +12 -0
  575. package/node_modules/underscore/cjs/get.js +14 -0
  576. package/node_modules/underscore/cjs/groupBy.js +10 -0
  577. package/node_modules/underscore/cjs/has.js +18 -0
  578. package/node_modules/underscore/cjs/identity.js +6 -0
  579. package/node_modules/underscore/cjs/index-default.js +11 -0
  580. package/node_modules/underscore/cjs/index.js +278 -0
  581. package/node_modules/underscore/cjs/indexBy.js +9 -0
  582. package/node_modules/underscore/cjs/indexOf.js +11 -0
  583. package/node_modules/underscore/cjs/initial.js +10 -0
  584. package/node_modules/underscore/cjs/intersection.js +21 -0
  585. package/node_modules/underscore/cjs/invert.js +13 -0
  586. package/node_modules/underscore/cjs/invoke.js +30 -0
  587. package/node_modules/underscore/cjs/isArguments.js +18 -0
  588. package/node_modules/underscore/cjs/isArray.js +8 -0
  589. package/node_modules/underscore/cjs/isArrayBuffer.js +5 -0
  590. package/node_modules/underscore/cjs/isBoolean.js +8 -0
  591. package/node_modules/underscore/cjs/isDataView.js +18 -0
  592. package/node_modules/underscore/cjs/isDate.js +5 -0
  593. package/node_modules/underscore/cjs/isElement.js +6 -0
  594. package/node_modules/underscore/cjs/isEmpty.js +20 -0
  595. package/node_modules/underscore/cjs/isEqual.js +140 -0
  596. package/node_modules/underscore/cjs/isError.js +5 -0
  597. package/node_modules/underscore/cjs/isFinite.js +9 -0
  598. package/node_modules/underscore/cjs/isFunction.js +17 -0
  599. package/node_modules/underscore/cjs/isMap.js +7 -0
  600. package/node_modules/underscore/cjs/isMatch.js +15 -0
  601. package/node_modules/underscore/cjs/isNaN.js +9 -0
  602. package/node_modules/underscore/cjs/isNull.js +6 -0
  603. package/node_modules/underscore/cjs/isNumber.js +5 -0
  604. package/node_modules/underscore/cjs/isObject.js +7 -0
  605. package/node_modules/underscore/cjs/isRegExp.js +5 -0
  606. package/node_modules/underscore/cjs/isSet.js +7 -0
  607. package/node_modules/underscore/cjs/isString.js +5 -0
  608. package/node_modules/underscore/cjs/isSymbol.js +5 -0
  609. package/node_modules/underscore/cjs/isTypedArray.js +17 -0
  610. package/node_modules/underscore/cjs/isUndefined.js +6 -0
  611. package/node_modules/underscore/cjs/isWeakMap.js +7 -0
  612. package/node_modules/underscore/cjs/isWeakSet.js +5 -0
  613. package/node_modules/underscore/cjs/iteratee.js +12 -0
  614. package/node_modules/underscore/cjs/keys.js +18 -0
  615. package/node_modules/underscore/cjs/last.js +11 -0
  616. package/node_modules/underscore/cjs/lastIndexOf.js +8 -0
  617. package/node_modules/underscore/cjs/map.js +18 -0
  618. package/node_modules/underscore/cjs/mapObject.js +18 -0
  619. package/node_modules/underscore/cjs/matcher.js +13 -0
  620. package/node_modules/underscore/cjs/max.js +31 -0
  621. package/node_modules/underscore/cjs/memoize.js +15 -0
  622. package/node_modules/underscore/cjs/min.js +31 -0
  623. package/node_modules/underscore/cjs/mixin.js +20 -0
  624. package/node_modules/underscore/cjs/negate.js +8 -0
  625. package/node_modules/underscore/cjs/noop.js +4 -0
  626. package/node_modules/underscore/cjs/now.js +6 -0
  627. package/node_modules/underscore/cjs/object.js +18 -0
  628. package/node_modules/underscore/cjs/omit.js +24 -0
  629. package/node_modules/underscore/cjs/once.js +8 -0
  630. package/node_modules/underscore/cjs/pairs.js +15 -0
  631. package/node_modules/underscore/cjs/partial.js +25 -0
  632. package/node_modules/underscore/cjs/partition.js +9 -0
  633. package/node_modules/underscore/cjs/pick.js +28 -0
  634. package/node_modules/underscore/cjs/pipe.js +12 -0
  635. package/node_modules/underscore/cjs/pluck.js +9 -0
  636. package/node_modules/underscore/cjs/property.js +13 -0
  637. package/node_modules/underscore/cjs/propertyOf.js +12 -0
  638. package/node_modules/underscore/cjs/random.js +10 -0
  639. package/node_modules/underscore/cjs/range.js +23 -0
  640. package/node_modules/underscore/cjs/reduce.js +7 -0
  641. package/node_modules/underscore/cjs/reduceRight.js +6 -0
  642. package/node_modules/underscore/cjs/reject.js +10 -0
  643. package/node_modules/underscore/cjs/rest.js +10 -0
  644. package/node_modules/underscore/cjs/restArguments.js +29 -0
  645. package/node_modules/underscore/cjs/result.js +24 -0
  646. package/node_modules/underscore/cjs/sample.js +29 -0
  647. package/node_modules/underscore/cjs/shuffle.js +8 -0
  648. package/node_modules/underscore/cjs/size.js +10 -0
  649. package/node_modules/underscore/cjs/some.js +17 -0
  650. package/node_modules/underscore/cjs/sortBy.js +26 -0
  651. package/node_modules/underscore/cjs/sortedIndex.js +17 -0
  652. package/node_modules/underscore/cjs/tap.js +9 -0
  653. package/node_modules/underscore/cjs/template.js +103 -0
  654. package/node_modules/underscore/cjs/templateSettings.js +11 -0
  655. package/node_modules/underscore/cjs/throttle.js +49 -0
  656. package/node_modules/underscore/cjs/times.js +11 -0
  657. package/node_modules/underscore/cjs/toArray.js +22 -0
  658. package/node_modules/underscore/cjs/toPath.js +11 -0
  659. package/node_modules/underscore/cjs/underscore-array-methods.js +31 -0
  660. package/node_modules/underscore/cjs/underscore.js +27 -0
  661. package/node_modules/underscore/cjs/unescape.js +7 -0
  662. package/node_modules/underscore/cjs/union.js +11 -0
  663. package/node_modules/underscore/cjs/uniq.js +38 -0
  664. package/node_modules/underscore/cjs/uniqueId.js +9 -0
  665. package/node_modules/underscore/cjs/unzip.js +17 -0
  666. package/node_modules/underscore/cjs/values.js +14 -0
  667. package/node_modules/underscore/cjs/where.js +10 -0
  668. package/node_modules/underscore/cjs/without.js +9 -0
  669. package/node_modules/underscore/cjs/wrap.js +10 -0
  670. package/node_modules/underscore/cjs/zip.js +8 -0
  671. package/node_modules/underscore/modules/.eslintrc +21 -0
  672. package/node_modules/underscore/modules/_baseCreate.js +18 -0
  673. package/node_modules/underscore/modules/_baseIteratee.js +17 -0
  674. package/node_modules/underscore/modules/_cb.js +10 -0
  675. package/node_modules/underscore/modules/_chainResult.js +6 -0
  676. package/node_modules/underscore/modules/_collectNonEnumProps.js +40 -0
  677. package/node_modules/underscore/modules/_createAssigner.js +18 -0
  678. package/node_modules/underscore/modules/_createEscaper.js +17 -0
  679. package/node_modules/underscore/modules/_createIndexFinder.js +28 -0
  680. package/node_modules/underscore/modules/_createPredicateIndexFinder.js +15 -0
  681. package/node_modules/underscore/modules/_createReduce.js +28 -0
  682. package/node_modules/underscore/modules/_createSizePropertyCheck.js +9 -0
  683. package/node_modules/underscore/modules/_deepGet.js +9 -0
  684. package/node_modules/underscore/modules/_escapeMap.js +9 -0
  685. package/node_modules/underscore/modules/_executeBound.js +13 -0
  686. package/node_modules/underscore/modules/_flatten.js +33 -0
  687. package/node_modules/underscore/modules/_getByteLength.js +4 -0
  688. package/node_modules/underscore/modules/_getLength.js +4 -0
  689. package/node_modules/underscore/modules/_group.js +15 -0
  690. package/node_modules/underscore/modules/_has.js +6 -0
  691. package/node_modules/underscore/modules/_hasObjectTag.js +3 -0
  692. package/node_modules/underscore/modules/_isArrayLike.js +8 -0
  693. package/node_modules/underscore/modules/_isBufferLike.js +6 -0
  694. package/node_modules/underscore/modules/_keyInObj.js +5 -0
  695. package/node_modules/underscore/modules/_methodFingerprint.js +37 -0
  696. package/node_modules/underscore/modules/_optimizeCb.js +21 -0
  697. package/node_modules/underscore/modules/_setup.js +43 -0
  698. package/node_modules/underscore/modules/_shallowProperty.js +6 -0
  699. package/node_modules/underscore/modules/_stringTagBug.js +13 -0
  700. package/node_modules/underscore/modules/_tagTester.js +9 -0
  701. package/node_modules/underscore/modules/_toBufferView.js +11 -0
  702. package/node_modules/underscore/modules/_toPath.js +8 -0
  703. package/node_modules/underscore/modules/_unescapeMap.js +5 -0
  704. package/node_modules/underscore/modules/after.js +8 -0
  705. package/node_modules/underscore/modules/allKeys.js +13 -0
  706. package/node_modules/underscore/modules/before.js +12 -0
  707. package/node_modules/underscore/modules/bind.js +13 -0
  708. package/node_modules/underscore/modules/bindAll.js +17 -0
  709. package/node_modules/underscore/modules/chain.js +8 -0
  710. package/node_modules/underscore/modules/chunk.js +13 -0
  711. package/node_modules/underscore/modules/clone.js +9 -0
  712. package/node_modules/underscore/modules/compact.js +6 -0
  713. package/node_modules/underscore/modules/compose.js +12 -0
  714. package/node_modules/underscore/modules/constant.js +6 -0
  715. package/node_modules/underscore/modules/contains.js +10 -0
  716. package/node_modules/underscore/modules/countBy.js +9 -0
  717. package/node_modules/underscore/modules/create.js +11 -0
  718. package/node_modules/underscore/modules/debounce.js +40 -0
  719. package/node_modules/underscore/modules/defaults.js +5 -0
  720. package/node_modules/underscore/modules/defer.js +7 -0
  721. package/node_modules/underscore/modules/delay.js +9 -0
  722. package/node_modules/underscore/modules/difference.js +13 -0
  723. package/node_modules/underscore/modules/each.js +23 -0
  724. package/node_modules/underscore/modules/escape.js +5 -0
  725. package/node_modules/underscore/modules/every.js +15 -0
  726. package/node_modules/underscore/modules/extend.js +5 -0
  727. package/node_modules/underscore/modules/extendOwn.js +7 -0
  728. package/node_modules/underscore/modules/filter.js +12 -0
  729. package/node_modules/underscore/modules/find.js +10 -0
  730. package/node_modules/underscore/modules/findIndex.js +4 -0
  731. package/node_modules/underscore/modules/findKey.js +12 -0
  732. package/node_modules/underscore/modules/findLastIndex.js +4 -0
  733. package/node_modules/underscore/modules/findWhere.js +8 -0
  734. package/node_modules/underscore/modules/first.js +9 -0
  735. package/node_modules/underscore/modules/flatten.js +7 -0
  736. package/node_modules/underscore/modules/functions.js +10 -0
  737. package/node_modules/underscore/modules/get.js +12 -0
  738. package/node_modules/underscore/modules/groupBy.js +8 -0
  739. package/node_modules/underscore/modules/has.js +16 -0
  740. package/node_modules/underscore/modules/identity.js +4 -0
  741. package/node_modules/underscore/modules/index-all.js +18 -0
  742. package/node_modules/underscore/modules/index-default.js +27 -0
  743. package/node_modules/underscore/modules/index.js +200 -0
  744. package/node_modules/underscore/modules/indexBy.js +7 -0
  745. package/node_modules/underscore/modules/indexOf.js +9 -0
  746. package/node_modules/underscore/modules/initial.js +8 -0
  747. package/node_modules/underscore/modules/intersection.js +19 -0
  748. package/node_modules/underscore/modules/invert.js +11 -0
  749. package/node_modules/underscore/modules/invoke.js +28 -0
  750. package/node_modules/underscore/modules/isArguments.js +16 -0
  751. package/node_modules/underscore/modules/isArray.js +6 -0
  752. package/node_modules/underscore/modules/isArrayBuffer.js +3 -0
  753. package/node_modules/underscore/modules/isBoolean.js +6 -0
  754. package/node_modules/underscore/modules/isDataView.js +16 -0
  755. package/node_modules/underscore/modules/isDate.js +3 -0
  756. package/node_modules/underscore/modules/isElement.js +4 -0
  757. package/node_modules/underscore/modules/isEmpty.js +18 -0
  758. package/node_modules/underscore/modules/isEqual.js +153 -0
  759. package/node_modules/underscore/modules/isError.js +3 -0
  760. package/node_modules/underscore/modules/isFinite.js +7 -0
  761. package/node_modules/underscore/modules/isFunction.js +15 -0
  762. package/node_modules/underscore/modules/isMap.js +5 -0
  763. package/node_modules/underscore/modules/isMatch.js +13 -0
  764. package/node_modules/underscore/modules/isNaN.js +7 -0
  765. package/node_modules/underscore/modules/isNull.js +4 -0
  766. package/node_modules/underscore/modules/isNumber.js +3 -0
  767. package/node_modules/underscore/modules/isObject.js +5 -0
  768. package/node_modules/underscore/modules/isRegExp.js +3 -0
  769. package/node_modules/underscore/modules/isSet.js +5 -0
  770. package/node_modules/underscore/modules/isString.js +3 -0
  771. package/node_modules/underscore/modules/isSymbol.js +3 -0
  772. package/node_modules/underscore/modules/isTypedArray.js +15 -0
  773. package/node_modules/underscore/modules/isUndefined.js +4 -0
  774. package/node_modules/underscore/modules/isWeakMap.js +5 -0
  775. package/node_modules/underscore/modules/isWeakSet.js +3 -0
  776. package/node_modules/underscore/modules/iteratee.js +10 -0
  777. package/node_modules/underscore/modules/keys.js +16 -0
  778. package/node_modules/underscore/modules/last.js +9 -0
  779. package/node_modules/underscore/modules/lastIndexOf.js +6 -0
  780. package/node_modules/underscore/modules/map.js +16 -0
  781. package/node_modules/underscore/modules/mapObject.js +16 -0
  782. package/node_modules/underscore/modules/matcher.js +11 -0
  783. package/node_modules/underscore/modules/max.js +29 -0
  784. package/node_modules/underscore/modules/memoize.js +13 -0
  785. package/node_modules/underscore/modules/min.js +29 -0
  786. package/node_modules/underscore/modules/mixin.js +18 -0
  787. package/node_modules/underscore/modules/negate.js +6 -0
  788. package/node_modules/underscore/modules/noop.js +2 -0
  789. package/node_modules/underscore/modules/now.js +4 -0
  790. package/node_modules/underscore/modules/object.js +16 -0
  791. package/node_modules/underscore/modules/omit.js +22 -0
  792. package/node_modules/underscore/modules/once.js +6 -0
  793. package/node_modules/underscore/modules/package.json +1 -0
  794. package/node_modules/underscore/modules/pairs.js +13 -0
  795. package/node_modules/underscore/modules/partial.js +24 -0
  796. package/node_modules/underscore/modules/partition.js +7 -0
  797. package/node_modules/underscore/modules/pick.js +26 -0
  798. package/node_modules/underscore/modules/pluck.js +7 -0
  799. package/node_modules/underscore/modules/property.js +11 -0
  800. package/node_modules/underscore/modules/propertyOf.js +10 -0
  801. package/node_modules/underscore/modules/random.js +8 -0
  802. package/node_modules/underscore/modules/range.js +21 -0
  803. package/node_modules/underscore/modules/reduce.js +5 -0
  804. package/node_modules/underscore/modules/reduceRight.js +4 -0
  805. package/node_modules/underscore/modules/reject.js +8 -0
  806. package/node_modules/underscore/modules/rest.js +8 -0
  807. package/node_modules/underscore/modules/restArguments.js +27 -0
  808. package/node_modules/underscore/modules/result.js +22 -0
  809. package/node_modules/underscore/modules/sample.js +27 -0
  810. package/node_modules/underscore/modules/shuffle.js +6 -0
  811. package/node_modules/underscore/modules/size.js +8 -0
  812. package/node_modules/underscore/modules/some.js +15 -0
  813. package/node_modules/underscore/modules/sortBy.js +24 -0
  814. package/node_modules/underscore/modules/sortedIndex.js +15 -0
  815. package/node_modules/underscore/modules/tap.js +7 -0
  816. package/node_modules/underscore/modules/template.js +101 -0
  817. package/node_modules/underscore/modules/templateSettings.js +9 -0
  818. package/node_modules/underscore/modules/throttle.js +47 -0
  819. package/node_modules/underscore/modules/times.js +9 -0
  820. package/node_modules/underscore/modules/toArray.js +20 -0
  821. package/node_modules/underscore/modules/toPath.js +9 -0
  822. package/node_modules/underscore/modules/underscore-array-methods.js +31 -0
  823. package/node_modules/underscore/modules/underscore.js +25 -0
  824. package/node_modules/underscore/modules/unescape.js +5 -0
  825. package/node_modules/underscore/modules/union.js +9 -0
  826. package/node_modules/underscore/modules/uniq.js +36 -0
  827. package/node_modules/underscore/modules/uniqueId.js +7 -0
  828. package/node_modules/underscore/modules/unzip.js +15 -0
  829. package/node_modules/underscore/modules/values.js +12 -0
  830. package/node_modules/underscore/modules/where.js +8 -0
  831. package/node_modules/underscore/modules/without.js +7 -0
  832. package/node_modules/underscore/modules/wrap.js +8 -0
  833. package/node_modules/underscore/modules/zip.js +6 -0
  834. package/node_modules/underscore/package.json +124 -0
  835. package/node_modules/underscore/underscore-esm-min.js +5 -0
  836. package/node_modules/underscore/underscore-esm-min.js.map +1 -0
  837. package/node_modules/underscore/underscore-esm.js +2056 -0
  838. package/node_modules/underscore/underscore-esm.js.map +1 -0
  839. package/node_modules/underscore/underscore-min.js +6 -0
  840. package/node_modules/underscore/underscore-min.js.map +1 -0
  841. package/node_modules/underscore/underscore-node-f.cjs +2180 -0
  842. package/node_modules/underscore/underscore-node-f.cjs.map +1 -0
  843. package/node_modules/underscore/underscore-node.cjs +11 -0
  844. package/node_modules/underscore/underscore-node.cjs.map +1 -0
  845. package/node_modules/underscore/underscore-node.mjs +7 -0
  846. package/node_modules/underscore/underscore-node.mjs.map +1 -0
  847. package/node_modules/underscore/underscore-umd-min.js +6 -0
  848. package/node_modules/underscore/underscore-umd-min.js.map +1 -0
  849. package/node_modules/underscore/underscore-umd.js +2064 -0
  850. package/node_modules/underscore/underscore-umd.js.map +1 -0
  851. package/node_modules/underscore/underscore.js +2064 -0
  852. package/node_modules/util-deprecate/History.md +16 -0
  853. package/node_modules/util-deprecate/LICENSE +24 -0
  854. package/node_modules/util-deprecate/README.md +53 -0
  855. package/node_modules/util-deprecate/browser.js +67 -0
  856. package/node_modules/util-deprecate/node.js +6 -0
  857. package/node_modules/util-deprecate/package.json +27 -0
  858. package/node_modules/xmlbuilder/CHANGELOG.md +438 -0
  859. package/node_modules/xmlbuilder/LICENSE +21 -0
  860. package/node_modules/xmlbuilder/README.md +86 -0
  861. package/node_modules/xmlbuilder/appveyor.yml +20 -0
  862. package/node_modules/xmlbuilder/lib/Utility.js +83 -0
  863. package/node_modules/xmlbuilder/lib/XMLAttribute.js +41 -0
  864. package/node_modules/xmlbuilder/lib/XMLCData.js +32 -0
  865. package/node_modules/xmlbuilder/lib/XMLComment.js +32 -0
  866. package/node_modules/xmlbuilder/lib/XMLDTDAttList.js +50 -0
  867. package/node_modules/xmlbuilder/lib/XMLDTDElement.js +35 -0
  868. package/node_modules/xmlbuilder/lib/XMLDTDEntity.js +56 -0
  869. package/node_modules/xmlbuilder/lib/XMLDTDNotation.js +37 -0
  870. package/node_modules/xmlbuilder/lib/XMLDeclaration.js +40 -0
  871. package/node_modules/xmlbuilder/lib/XMLDocType.js +108 -0
  872. package/node_modules/xmlbuilder/lib/XMLDocument.js +49 -0
  873. package/node_modules/xmlbuilder/lib/XMLDocumentCB.js +414 -0
  874. package/node_modules/xmlbuilder/lib/XMLDummy.js +29 -0
  875. package/node_modules/xmlbuilder/lib/XMLElement.js +111 -0
  876. package/node_modules/xmlbuilder/lib/XMLNode.js +467 -0
  877. package/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +35 -0
  878. package/node_modules/xmlbuilder/lib/XMLRaw.js +32 -0
  879. package/node_modules/xmlbuilder/lib/XMLStreamWriter.js +287 -0
  880. package/node_modules/xmlbuilder/lib/XMLStringWriter.js +341 -0
  881. package/node_modules/xmlbuilder/lib/XMLStringifier.js +163 -0
  882. package/node_modules/xmlbuilder/lib/XMLText.js +32 -0
  883. package/node_modules/xmlbuilder/lib/XMLWriterBase.js +90 -0
  884. package/node_modules/xmlbuilder/lib/index.js +53 -0
  885. package/node_modules/xmlbuilder/package.json +37 -0
  886. package/package.json +13 -5
  887. package/scripts/check-doc-links.mjs +2 -0
  888. package/scripts/check-image-tags.sh +1 -1
  889. package/scripts/check-package-artifact.mjs +19 -0
  890. package/scripts/check-release-consistency.test.mjs +2 -2
  891. package/scripts/dependency-audit.mjs +49 -96
  892. package/scripts/dependency-audit.test.mjs +70 -106
  893. package/scripts/docx-browser-test.mjs +56 -0
  894. package/scripts/docx-compatibility.test.mjs +39 -0
  895. package/scripts/docx-fixtures.mjs +19 -0
  896. package/scripts/export-oss.mjs +3 -0
  897. package/scripts/generate-third-party-notices.mjs +6 -2
  898. package/scripts/install.sh +1 -1
  899. package/scripts/notification-console-test.mjs +172 -0
  900. package/scripts/oss-boundary-check.mjs +3 -1
  901. package/scripts/publish-images.sh +1 -1
  902. package/scripts/release-audit.mjs +5 -1
  903. package/scripts/vendor-mammoth.mjs +130 -0
  904. package/scripts/verify-github-repo.mjs +4 -0
  905. package/scripts/verify-oss-export.mjs +3 -0
  906. package/sql/068_notification_outbox.sql +28 -0
  907. package/sql/README.en.md +8 -0
  908. package/sql/README.md +8 -0
  909. package/src/app/approval-continuations.mysql.test.ts +1 -1
  910. package/src/app/delivery-dlq-replay.mysql.test.ts +2 -2
  911. package/src/app/delivery.ts +115 -1
  912. package/src/app/engine.ts +5 -4
  913. package/src/app/kernel-usage-lifecycle.mysql.test.ts +1 -1
  914. package/src/app/kernel.ts +8 -0
  915. package/src/app/notification-outbox.test.ts +321 -0
  916. package/src/app/notification-outbox.ts +123 -0
  917. package/src/app/operational-metrics.test.ts +15 -0
  918. package/src/app/operational-metrics.ts +9 -0
  919. package/src/app/outbound.ts +28 -0
  920. package/src/app/runtime-evidence-maintenance.test.ts +34 -1
  921. package/src/app/runtime-lifecycle-default.ts +7 -0
  922. package/src/app/runtime-lifecycle.ts +8 -0
  923. package/src/app/tool-approvals.ts +68 -31
  924. package/src/core/contracts/delivery-replay.ts +1 -0
  925. package/src/core/contracts/notification-outbox.ts +54 -0
  926. package/src/core/observability/openmetrics.test.ts +18 -0
  927. package/src/core/observability/openmetrics.ts +17 -0
  928. package/src/core/runtime/finish-runtime.test.ts +20 -0
  929. package/src/core/runtime/finish-runtime.ts +13 -5
  930. package/src/core/runtime/inhub-runtime.ts +10 -2
  931. package/src/core/runtime/notification-outbox-work.ts +15 -0
  932. package/src/core/state/notification-outbox.ts +66 -0
  933. package/src/core/state/state-contracts.ts +4 -0
  934. package/src/infrastructure/config/config-approval-ledger.ts +23 -1
  935. package/src/infrastructure/config/config-delivery-dlq-ledger.ts +26 -13
  936. package/src/infrastructure/config/configstore.ts +8 -4
  937. package/src/infrastructure/state/notification-outbox-jsonl.ts +80 -0
  938. package/src/infrastructure/state/notification-outbox-mysql.ts +100 -0
  939. package/src/infrastructure/state/notification-outbox-storage.test.ts +325 -0
  940. package/src/infrastructure/state/state-jsonl.ts +64 -13
  941. package/src/infrastructure/state/state-mysql.ts +36 -5
  942. package/src/routes/admin-notifications.test.ts +75 -0
  943. package/src/routes/admin-notifications.ts +77 -0
  944. package/src/routes/admin-runtime.test.ts +25 -0
  945. package/src/routes/admin-runtime.ts +15 -0
  946. package/src/routes/admin.ts +1 -0
  947. package/src/test-support/notification-outbox-journal-crash-child.ts +20 -0
  948. package/vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz +0 -0
  949. package/vendor/mammoth-library/LICENSE +22 -0
  950. package/vendor/mammoth-library/SOURCE.json +57 -0
  951. package/vendor/mammoth-library/browser/docx/files.js +14 -0
  952. package/vendor/mammoth-library/browser/unzip.js +12 -0
  953. package/vendor/mammoth-library/lib/document-to-html.js +469 -0
  954. package/vendor/mammoth-library/lib/documents.js +254 -0
  955. package/vendor/mammoth-library/lib/docx/body-reader.js +798 -0
  956. package/vendor/mammoth-library/lib/docx/comments-reader.js +31 -0
  957. package/vendor/mammoth-library/lib/docx/content-types-reader.js +58 -0
  958. package/vendor/mammoth-library/lib/docx/document-xml-reader.js +30 -0
  959. package/vendor/mammoth-library/lib/docx/docx-reader.js +226 -0
  960. package/vendor/mammoth-library/lib/docx/files.js +80 -0
  961. package/vendor/mammoth-library/lib/docx/notes-reader.js +28 -0
  962. package/vendor/mammoth-library/lib/docx/numbering-xml.js +111 -0
  963. package/vendor/mammoth-library/lib/docx/office-xml-reader.js +73 -0
  964. package/vendor/mammoth-library/lib/docx/relationships-reader.js +43 -0
  965. package/vendor/mammoth-library/lib/docx/style-map.js +75 -0
  966. package/vendor/mammoth-library/lib/docx/styles-reader.js +90 -0
  967. package/vendor/mammoth-library/lib/docx/uris.js +21 -0
  968. package/vendor/mammoth-library/lib/html/ast.js +51 -0
  969. package/vendor/mammoth-library/lib/html/index.js +41 -0
  970. package/vendor/mammoth-library/lib/html/simplify.js +88 -0
  971. package/vendor/mammoth-library/lib/images.js +31 -0
  972. package/vendor/mammoth-library/lib/index.d.ts +86 -0
  973. package/vendor/mammoth-library/lib/index.js +111 -0
  974. package/vendor/mammoth-library/lib/options-reader.js +107 -0
  975. package/vendor/mammoth-library/lib/promises.js +42 -0
  976. package/vendor/mammoth-library/lib/raw-text.js +14 -0
  977. package/vendor/mammoth-library/lib/results.js +72 -0
  978. package/vendor/mammoth-library/lib/style-reader.js +365 -0
  979. package/vendor/mammoth-library/lib/styles/document-matchers.js +100 -0
  980. package/vendor/mammoth-library/lib/styles/html-paths.js +75 -0
  981. package/vendor/mammoth-library/lib/styles/parser/tokeniser.js +30 -0
  982. package/vendor/mammoth-library/lib/transforms.js +62 -0
  983. package/vendor/mammoth-library/lib/underline.js +11 -0
  984. package/vendor/mammoth-library/lib/unzip.js +20 -0
  985. package/vendor/mammoth-library/lib/writers/html-writer.js +159 -0
  986. package/vendor/mammoth-library/lib/writers/index.js +14 -0
  987. package/vendor/mammoth-library/lib/writers/markdown-writer.js +163 -0
  988. package/vendor/mammoth-library/lib/xml/index.js +8 -0
  989. package/vendor/mammoth-library/lib/xml/nodes.js +70 -0
  990. package/vendor/mammoth-library/lib/xml/reader.js +69 -0
  991. package/vendor/mammoth-library/lib/xml/writer.js +61 -0
  992. package/vendor/mammoth-library/lib/xml/xmldom.js +23 -0
  993. package/vendor/mammoth-library/lib/zipfile.js +72 -0
  994. package/vendor/mammoth-library/package.json +39 -0
  995. package/vendor/mammoth-library/upstream-package.json +64 -0
  996. package/vendor/mammoth-library-distribution.json +4 -0
  997. package/web/console/assets/{Accounts-DKhw_QLr.js → Accounts-Dhj6PjXP.js} +1 -1
  998. package/web/console/assets/{AgentClients-CM4_5HaA.js → AgentClients-CMy8StAH.js} +1 -1
  999. package/web/console/assets/{AgentTasks-CkQgZTU5.js → AgentTasks-DA1xZdmP.js} +1 -1
  1000. package/web/console/assets/{Approvals-B9O9TkbO.js → Approvals-DIsd7R8N.js} +1 -1
  1001. package/web/console/assets/{Audit-2vDC1SPu.js → Audit-AUDABLTX.js} +1 -1
  1002. package/web/console/assets/{BrandLockup-BgASiRSE.js → BrandLockup-CffORQse.js} +1 -1
  1003. package/web/console/assets/{Channels-A-GvkNBt.js → Channels-B8rjsM0S.js} +1 -1
  1004. package/web/console/assets/{ChatEntries-BLxymI67.js → ChatEntries-iZjJMEUZ.js} +1 -1
  1005. package/web/console/assets/{Clients-DeNlmvS6.js → Clients-CwgpGCSD.js} +1 -1
  1006. package/web/console/assets/{Cost-CBq_L4Kz.js → Cost-B2tNxu71.js} +1 -1
  1007. package/web/console/assets/{Credentials-DmtbctNj.js → Credentials-BuwFB-fV.js} +1 -1
  1008. package/web/console/assets/{Diagnostics-BbcRDiA-.js → Diagnostics-z5glms11.js} +1 -1
  1009. package/web/console/assets/{Executors-gGgmQrDt.js → Executors-Bc4SvjeH.js} +1 -1
  1010. package/web/console/assets/{Kb-lgY6OXUz.js → Kb-BRbRHxLy.js} +1 -1
  1011. package/web/console/assets/{Login-DA6BASZd.js → Login-CGgLGTE1.js} +1 -1
  1012. package/web/console/assets/{Projects-DEbmB_sT.js → Projects-CPWw3con.js} +1 -1
  1013. package/web/console/assets/{Routes-qS6LLoyS.js → Routes-CMIaE0Bx.js} +1 -1
  1014. package/web/console/assets/Runs-B8HuE700.js +3 -0
  1015. package/web/console/assets/Runs-Bv6CV_Hk.css +1 -0
  1016. package/web/console/assets/{Setup-DEpVF5uw.js → Setup-G8RKzliR.js} +1 -1
  1017. package/web/console/assets/{Shell-DgoPgK1E.js → Shell-DimHgraJ.js} +1 -1
  1018. package/web/console/assets/{StorageBuckets-DJtNN769.js → StorageBuckets-CiVYXIE2.js} +1 -1
  1019. package/web/console/assets/{SystemSettings-0DEUgeTR.js → SystemSettings-DF8sZNen.js} +1 -1
  1020. package/web/console/assets/{SystemStatus-CR1phiPE.js → SystemStatus-BlHywK13.js} +1 -1
  1021. package/web/console/assets/{Targets-D65l-IMB.js → Targets-BXaoPoAJ.js} +1 -1
  1022. package/web/console/assets/{Tools-DqtrINrN.js → Tools-B22lNHXq.js} +1 -1
  1023. package/web/console/assets/{Usage-B5njXNjx.js → Usage-C02EzoI2.js} +1 -1
  1024. package/web/console/assets/{UsageAccess-ChnB4pjb.js → UsageAccess-DOb-cyPE.js} +1 -1
  1025. package/web/console/assets/{UsageHelp-BBKIvbQ5.js → UsageHelp-CzS2gI40.js} +1 -1
  1026. package/web/console/assets/{index-sLKrJd_p.js → index-CK0ZCTZv.js} +2 -2
  1027. package/web/console/assets/{request-BpaimqEb.js → request-DKycpD7z.js} +1 -1
  1028. package/web/console/assets/{schema-D0Z4kFCZ.js → schema-SCiNxBlR.js} +1 -1
  1029. package/web/console/index.html +1 -1
  1030. package/web-admin/package-lock.json +5 -23
  1031. package/web-admin/package.json +1 -1
  1032. package/web-admin/src/components/NotificationOutboxPanel.vue +106 -0
  1033. package/web-admin/src/pages/Runs.vue +8 -2
  1034. package/security/dependency-audit-exceptions.json +0 -192
  1035. package/web/console/assets/Runs-CvGTV8I-.css +0 -1
  1036. package/web/console/assets/Runs-DG-VLRSc.js +0 -3
@@ -7,7 +7,7 @@
7
7
  ## 验证范围
8
8
 
9
9
  - 验证对象:BailingHub 开源版 Docker demo;
10
- - 稳定基线:`v0.9.3`;
10
+ - 稳定基线:`v0.9.4`;
11
11
  - 数据范围:仓库自带的 demo 订单、工单、退款和故障工具;
12
12
  - 预计用时:镜像和依赖下载完成后约 20 分钟;
13
13
  - 不需要:真实大模型 Key、生产 API、生产凭据或真实业务数据。
@@ -32,7 +32,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
32
32
  cd "$HOME/bailinghub"
33
33
  ```
34
34
 
35
- 脚本默认拉取 `v0.9.3` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
35
+ 脚本默认拉取 `v0.9.4` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
36
36
 
37
37
  如果默认目录已被占用,请使用一个新的空目录,不要覆盖现有部署:
38
38
 
@@ -46,7 +46,7 @@ cd "$HOME/bailinghub-validation"
46
46
  ### 路径 B:本地源码复现
47
47
 
48
48
  ```bash
49
- git clone --depth 1 --branch v0.9.3 https://github.com/bailinghub/bailinghub.git
49
+ git clone --depth 1 --branch v0.9.4 https://github.com/bailinghub/bailinghub.git
50
50
  cd bailinghub
51
51
  git rev-parse HEAD
52
52
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -167,7 +167,7 @@ docker compose exec -T bailinghub npm run demo:e2e
167
167
  - [可信富内容渲染与聊天可靠性](RELEASE_NOTES_v0.1.15.md)。
168
168
  - [工具运行时收敛与语义检索韧性](RELEASE_NOTES_v0.1.16.md)。
169
169
  - [可组合 Core 与 Kernel Host API v1](RELEASE_NOTES_v0.3.0.md)。
170
- - [当前稳定版发布说明](RELEASE_NOTES_v0.9.3.md)。
170
+ - [当前稳定版发布说明](RELEASE_NOTES_v0.9.4.md)。
171
171
 
172
172
  扩展验证请在同一 Issue 模板中选择对应路径,并说明是否获得过维护者的直接帮助。
173
173
 
@@ -0,0 +1,47 @@
1
+ # Durable notifications and recovery
2
+
3
+ [简体中文](NOTIFICATION_DURABILITY.md)
4
+
5
+ Durable notifications are available from Core v0.9.4. Historical Core v0.9.3 artifacts provide graceful drain and migration 067 dead-letter replay only. The scope is Core and its bundled console; ACC and independent consumers are unchanged.
6
+
7
+ ## Persistence boundary
8
+
9
+ Built-in MySQL stores commit a terminal Job and its notification intents together. Approval creation and its notification use one transaction in the approval configuration database. These databases may differ; no cross-database transaction is assumed. JSONL stores append the Job and intents in one record, sync the journal, then publish memory state. JSONL supports one writer, not multiple processes sharing the same file.
10
+
11
+ The outbox covers callbacks, configured result delivery, approval prompts and dead-letter recording for failed notification children. New transitions create intents. Startup does not backfill historical terminal Jobs or pending approvals. Another legitimate business run creates another callback event, while explicit delivery routes retain `deliver_<parent>` and approvals retain `approval_<id>`. Native WeCom replies use the terminal event identity so an approved continuation can still notify its actual final result. Notification recovery does not rerun the business parent. General monitoring alerts remain best effort.
12
+
13
+ Events freeze the business snapshot, destination coordinates and display brand. Retries reuse the event ID. Signing secrets are read from existing credential sources rather than copied into the outbox. Payloads can contain business text and destination addresses and require the same protection and backup controls as Job data. Admin summaries and metrics omit them.
14
+
15
+ ## Delivery semantics
16
+
17
+ - Startup and existing maintenance recover pending intents with bounded batches and retries. Graceful close stops new scans and drains accepted work; a subsequent owner recovers remaining durable work.
18
+ - Claim, renewal, completion and failure use an unexpired lease token. An old worker cannot acknowledge a replacement worker's claim.
19
+ - HTTP delivery waits for the response. The stable event ID appears in `X-Bailing-Event-Id` and the signed body's `notification_event_id`. Network errors, 429 and 5xx retry with backoff; ordinary 4xx stop. An automatic cycle allows at most six sending attempts. Receivers should persist event IDs for deduplication.
20
+ - A receiver may accept a request before the sender loses its acknowledgement. Webhook redelivery remains possible; leases and event IDs do not provide exactly-once external effects.
21
+ - Partial or unknown native-channel delivery, including an expired in-flight lease, becomes `uncertain` instead of an automatic full resend. An operator must check the receiver before retrying.
22
+ - `completed` can mean durable admission to the notification executor, not human receipt. Failed executor children retain migration 067's replay marker. Native dead letters linked to an outbox event use the outbox retry path exclusively.
23
+
24
+ States are `pending`, `processing`, `completed`, `skipped`, `failed` and `uncertain`. Manual retry preserves the ID and cumulative attempts while resetting the current cycle. Failed records are retained; automatic retention and archival are outside this change.
25
+
26
+ ## Operations
27
+
28
+ The bundled console's Runs page adds notification delivery summaries, type/status filters and retry. Readers can inspect; retry requires `runs:write`. Uncertain delivery requires explicit duplicate-risk acknowledgement. No operation reruns the business parent.
29
+
30
+ Admin endpoints are `GET /admin/api/notification-outbox` and `POST /admin/api/notification-outbox/{event_id}/retry`. Retry requires `kind` and the observed `expected_status`; uncertain delivery additionally requires `allow_uncertain: true`. A changed state returns 409. Third-party stores without the optional durable ports retain legacy best-effort behavior and expose capability unavailable instead of claiming durability.
31
+
32
+ [Operational metrics](OPERATIONS.en.md) add availability, status counts, oldest pending age and expired leases with fixed sources `jobs` and `approvals`. Kinds partition these sources even when both stores share one database. No event, tenant, recipient or payload becomes a metric label.
33
+
34
+ ## Migration, rollback and verification
35
+
36
+ Only [068_notification_outbox.sql](../sql/068_notification_outbox.sql) is added; historical migrations remain unchanged. Back up code, configuration, actual state/configuration databases and JSONL before upgrade. Migrate every database used by these stores. Migration creates the outbox and a nullable dead-letter association; it does not generate notifications from historical records.
37
+
38
+ Before rollback, stop new work and workers and preserve outbox, dead-letter and recipient evidence. Old code cannot process new outbox records, and database restoration cannot undo external messages. Restore a consistent code/configuration/database set and reconcile sent event IDs. Deleting intents or merely switching code is not a lossless rollback. Source tests are not a production upgrade or restore drill.
39
+
40
+ Public regression entry points:
41
+
42
+ - [Storage](../src/infrastructure/state/notification-outbox-storage.test.ts): JSONL recovery, MySQL atomicity/lost acknowledgements, lease fencing, approvals and retained migration history.
43
+ - [Runtime](../src/app/notification-outbox.test.ts): local receiver, same-ID delivery after SIGKILL, decided approvals, native uncertainty, child identities and stale acknowledgement rejection.
44
+ - [Lifecycle](../src/app/runtime-evidence-maintenance.test.ts): startup, stop and draining accepted work.
45
+ - [Admin API](../src/routes/admin-notifications.test.ts) and [legacy dead-letter routes](../src/routes/admin-runtime.test.ts): permissions, redaction, changed-state handling and one retry entry point.
46
+
47
+ Synthetic/local tests do not establish live-channel availability or production receipt. JSONL sync and MySQL commits depend on underlying storage; they do not cover damaged disks, arbitrary external stores or unverified external side effects.
@@ -0,0 +1,47 @@
1
+ # 通知持久化与补发
2
+
3
+ [English](NOTIFICATION_DURABILITY.en.md)
4
+
5
+ 通知持久化从 Core v0.9.4 提供;历史 Core v0.9.3 制品仍只有正常关闭排空和 067 死信重投。能力属于 Core 及其自带控制台,不修改 ACC 契约或独立消费者。
6
+
7
+ ## 保存和恢复的范围
8
+
9
+ 内置 MySQL 状态库将任务终态和对应通知意图写入同一个事务;审批创建和审批提示写入审批所在配置库的同一个事务。两种库可以不同,不依赖跨库事务。JSONL 状态库将任务与通知写入同一条日志并同步落盘,随后才更新内存;这是单写者实现,不提供多个进程共享同一 JSONL 文件的协调。
10
+
11
+ 覆盖任务 callback、配置的结果送达、审批提示,以及失败通知子任务的死信留存。只有新增的状态转换创建意图,启动时不会扫描历史已完成任务、旧待审批单并批量补发。业务父任务再次合法运行完成会产生新的 callback 事件;显式送达路由的 `deliver_<parent>` 和审批提示的 `approval_<id>` 子任务仍沿用已有身份。原生企微回流按终态事件区分,审批补续后的真实最终结果仍会通知;同一事件补发不会重新创建子任务或重跑父任务。普通监控告警仍是尽力发送。
12
+
13
+ 终态与通知事件冻结业务快照、路由目的地和正文使用的品牌名,重试复用原事件 ID。签名密钥仍从原凭据入口读取,不复制到 outbox。快照可能含业务正文和目的地址,应按任务数据的敏感等级备份和保护;管理列表和指标不返回这些内容。
14
+
15
+ ## 发送语义
16
+
17
+ - 后台在启动和已有维护周期恢复待处理通知,单轮、并发和重试都有界。正常关闭停止接受新的扫描,并等待已接受的处理;留存的待处理意图由后续实例恢复。
18
+ - 每次领取具有独立租约 token,确认、失败和续租都校验当前 token 与有效期。过期 worker 不能确认后继 worker 的任务。
19
+ - HTTP 发送等待真实响应。稳定事件 ID 同时放入 `X-Bailing-Event-Id` 请求头及签名正文的 `notification_event_id` 字段。网络/429/5xx 可退避重试,普通 4xx 停止;每个自动处理周期最多六次发送尝试。接收方应保存此 ID 去重。
20
+ - 接收端已处理而本地确认丢失时,Webhook 可能再次送达。租约和事件 ID 不等于外部系统“恰好执行一次”。
21
+ - 原生渠道可能已部分送达、回执未知或处理期间租约失效时,保留为 `uncertain`,不会自动完整重发。操作者核对接收端后才可再次处理。
22
+ - `completed` 表示本通知步骤已完成,也可能只是已交给持久通知执行器,不能当作收件人已阅读。失败执行器子任务继续使用 067 原子重投标记;关联原生通知事件的死信统一从 outbox 补发,避免两个入口各发一遍。
23
+
24
+ 状态包括 `pending`、`processing`、`completed`、`skipped`、`failed`、`uncertain`。人工重试沿用事件 ID,重置当前周期计数,保留累计处理次数。失败记录不会静默丢弃;本次未添加自动清除或历史归档策略。
25
+
26
+ ## 查看和处置
27
+
28
+ 控制台「任务 → 通知送达」按通知类型、状态查看摘要。只读角色可查看,具有 `runs:write` 权限的角色可以重新处理失败通知;未知送达必须先确认重复风险。操作不会重跑业务父任务。
29
+
30
+ 管理 API 为 `GET /admin/api/notification-outbox` 和 `POST /admin/api/notification-outbox/{event_id}/retry`。重试需要 `kind` 与观察到的 `expected_status`;`uncertain` 还需 `allow_uncertain: true`。状态已改变返回 409,避免旧页面重复操作。缺少持久化端口的第三方仓储保留旧尽力发送兼容路径,API 返回能力不可用,不宣称完整持久化。
31
+
32
+ [运维指标](OPERATIONS.md)新增固定来源 `jobs` / `approvals` 的 outbox 可用性、各状态数量、最老待处理年龄和过期租约数。不同来源按种类分区,配置库和状态库共库时不重复统计。指标不含事件 ID、租户、收件人或正文标签。
33
+
34
+ ## 迁移、回退和验证
35
+
36
+ 新增 [068_notification_outbox.sql](../sql/068_notification_outbox.sql),不修改 067 及以前的迁移。升级前备份代码、配置、任务/审批数据库和 JSONL;迁移同时覆盖实际使用的状态与配置数据库。迁移只建表和增加可空关联列,不把旧终态或旧审批转换成新通知。
37
+
38
+ 回退前先停止新接单和通知 worker,保存 outbox、死信和已有外部回执。旧版本不会处理新 outbox;恢复备份也不能撤销已送出的消息。必须以一致的代码/配置/数据库集合恢复,并核对已发送事件,不能通过删除通知记录或直接切旧代码宣称无损回退。发行和合成验证不代表生产升级或回滚演练,具体步骤见 [v0.9.4 升级指南](UPGRADE_v0.9.4.md)。
39
+
40
+ 公开验证入口:
41
+
42
+ - [存储回归](../src/infrastructure/state/notification-outbox-storage.test.ts):JSONL 记录恢复、MySQL 同事务/回执丢失、租约隔离、审批和迁移保留。
43
+ - [通知运行回归](../src/app/notification-outbox.test.ts):本地接收端、强杀后同事件补发、已决审批跳过、原生未知态、子任务身份和旧 worker 确认隔离。
44
+ - [生命周期回归](../src/app/runtime-evidence-maintenance.test.ts):维护启动、停止与未完成工作排空。
45
+ - [管理 API 回归](../src/routes/admin-notifications.test.ts)和[旧死信入口回归](../src/routes/admin-runtime.test.ts):权限、摘要脱敏、并发状态改变和单一补发入口。
46
+
47
+ 这些测试使用合成数据和本地接收端,不证明真实渠道可用性或生产收件。JSONL 同步落盘与 MySQL 提交的保障仍依赖底层存储;不覆盖磁盘损坏、任意旧扩展实现或未经验证的外部副作用。
@@ -108,7 +108,7 @@ Primary metrics:
108
108
 
109
109
  Labels are fixed and low-cardinality. They never include job IDs, tenants, principals, route arguments, or business payloads. If an optional collector times out or fails, the endpoint still returns the remaining metrics and sets that collector's `bailinghub_metrics_collector_success` to 0. Logs contain only the collector class and failure class, never exception text or business data. The JSONL state backend can expose job metrics; without the MySQL control-plane aggregation, `control_plane` is reported as unavailable.
110
110
 
111
- The `maintenance` collector reads owner-local memory only. It does not query records, trigger reconciliation or call a model provider. Fixed sources are `usage`, `notification` and `approval`; kinds cover only existing model completion, settlement, response cleanup, usage reconciliation, reference price refresh, callbacks, delivery, approval notifications, alerts, delivery DLQ and approval continuation work. Completion counters describe Promise/continuation outcomes, not recipient delivery acknowledgements. An approval pass can complete with failed individual records; check the last-page `failed` sample as well. Counters reset when the process/owner is recreated. Last-page progress is not the persisted pending/unknown backlog or its oldest age, and has_more is not an exact backlog size. Unavailable optional modules do not emit invented zero samples.
111
+ The `maintenance` collector reads owner-local work snapshots and read-only notification outbox aggregates. It does not expose notification bodies, trigger reconciliation or call a model provider. Fixed sources are `usage`, `notification` and `approval`; kinds cover only existing model completion, settlement, response cleanup, usage reconciliation, reference price refresh, callbacks, delivery, approval notifications, alerts, delivery DLQ and approval continuation work. Completion counters describe Promise/continuation outcomes, not recipient delivery acknowledgements. An approval pass can complete with failed individual records; check the last-page `failed` sample as well. Counters reset when the process/owner is recreated. Last-page progress is not the persisted pending/unknown backlog or its oldest age, and has_more is not an exact backlog size. Unavailable optional modules do not emit invented zero samples.
112
112
 
113
113
  At minimum, alert on collector failures, expired leases, sustained oldest-queue age above the service objective, increases in audit-write failures, expected executors becoming offline, and abnormal recent error or rejection ratios.
114
114
 
@@ -172,7 +172,7 @@ Recovery order:
172
172
  - Security-critical tool audit is fail-closed. Best-effort operational audit must still feed metrics and alerts.
173
173
  - Graceful close drains accepted callback, delivery, approval-notification, alert and DLQ continuations within the shared Kernel budget before closing database/channel resources. A timeout preserves resources for another close attempt. Background failure logs contain fixed work kinds only.
174
174
  - Native delivery DLQs retain channel credentials. Custom `X-notify` DLQs requeue only the original failed notification child; queued acknowledges executor admission, not receipt. A permanent DLQ marker is saved atomically with admission, so repeated calls or lost resolve replies do not admit it again or rerun the business parent. Legacy entries are checked against the original job; binding conflicts return 409 and adapters without replay ports return 503.
175
- - This drain does not provide a complete SIGKILL-safe notification outbox. Created executor jobs retain durable queue recovery; direct webhooks and the gap between parent termination and child creation remain separate recovery boundaries. Receivers should deduplicate original event identities; partial or unknown receipt must not be blindly resent.
175
+ - Historical v0.9.3 drain does not provide a complete SIGKILL-safe notification outbox. Core v0.9.4 adds [durable notifications](NOTIFICATION_DURABILITY.en.md) and migration 068: new terminal transitions and approval creation commit alongside intents, and recovery sends notifications without rerunning business tasks. Ordinary alerts and legacy adapters retain best-effort boundaries. Receivers deduplicate stable event IDs; partial or unknown receipt must not be blindly resent.
176
176
 
177
177
  ## 8. Security Baseline
178
178
 
@@ -193,3 +193,7 @@ Recovery order:
193
193
  - A real `/run`, tool call, trace, and result delivery have completed.
194
194
  - Backup restoration has been verified.
195
195
  - Alerts cover queue backlog, error rate, executor offline state, and delivery dead letters.
196
+
197
+ ### Core v0.9.4 durable-notification metrics
198
+
199
+ `bailinghub_notification_outbox_available{source}` reports durable port availability; `bailinghub_notification_outbox_records{source,status}` reports status counts. `bailinghub_notification_outbox_oldest_pending_age_seconds{source}` and `bailinghub_notification_outbox_expired_leases{source}` report oldest pending age and expired claims. Sources are fixed to `jobs` / `approvals`. These are store aggregates rather than owner-local counters. Unsupported stores emit available=0 without invented zero backlogs. Query errors follow collector failure/timeout handling and never trigger delivery. See [durable notifications](NOTIFICATION_DURABILITY.en.md) for migration 068 and recovery/rollback boundaries; historical v0.9.3 graceful drain alone does not provide this recovery.
@@ -133,7 +133,7 @@ scrape_configs:
133
133
 
134
134
  指标标签是固定、低基数集合,不包含 `job_id`、租户、主体、路由参数或业务载荷。单个可选采集器超时或失败时,端点仍返回其余指标,并把对应 `bailinghub_metrics_collector_success` 置为 0;日志只记录采集器类别和失败类型,不记录异常正文或业务数据。JSONL 状态后端可提供任务指标,但没有 MySQL 控制面聚合时,`control_plane` 会标记为不可用。
135
135
 
136
- `maintenance` 采集器只读当前 owner 内存,不查询明细、不触发核对或模型请求。固定 source 为 `usage`、`notification`、`approval`;kind 只包含现有模型完成、结算、响应清理、usage 核对、价格刷新、回调、通知送达、审批通知、告警、送达 DLQ 和审批续执行。工作完成数统计 Promise/continuation 的终态,不等于接收方确认送达次数;一轮审批核对可完成但保留失败记录,应同时看 last_page 的 `failed`。进程/owner 重建会重置这些计数。last_page 不是数据库里 pending/unknown 的总数或最老年龄,`has_more=1` 也不是精确积压量;不可用的可选模块不输出伪造零数据。
136
+ `maintenance` 采集器读取当前 owner 的维护内存快照,并对通知 outbox 读取只读聚合;不返回通知正文、不触发核对或模型请求。固定 source 为 `usage`、`notification`、`approval`;kind 只包含现有模型完成、结算、响应清理、usage 核对、价格刷新、回调、通知送达、审批通知、告警、送达 DLQ 和审批续执行。工作完成数统计 Promise/continuation 的终态,不等于接收方确认送达次数;一轮审批核对可完成但保留失败记录,应同时看 last_page 的 `failed`。进程/owner 重建会重置这些计数。last_page 不是数据库里 pending/unknown 的总数或最老年龄,`has_more=1` 也不是精确积压量;不可用的可选模块不输出伪造零数据。
137
137
 
138
138
  建议至少告警:
139
139
 
@@ -219,7 +219,7 @@ scrape_configs:
219
219
  - 审计写入失败:安全关键工具调用按 fail-closed 处理;非关键运行事件不阻塞业务,但应进入运维告警与指标。
220
220
  - 正常关闭:Kernel 按同一关闭预算等待已接受的回调、送达派生、审批通知、告警和 DLQ 插入,再释放数据库/渠道资源;排空超时保留资源,宿主可在工作完成后重试 `close()`。后台失败日志只报告固定工作类别。
221
221
  - 送达死信重投:内置渠道继续通过渠道凭证发送;自定义 `X-notify` 死信只重排原失败通知子任务,回复 `queued` 表示已进入执行器队列。永久 DLQ 重投标记与原子入队一起保存,重复请求或 resolve 回包丢失不会重复入队,业务父任务不会重跑。旧死信按原 Job 验证承接器,绑定不符返回 409,旧扩展缺少重投端口返回 503;人工可检查原通知子任务。
222
- - 上述排空不提供 SIGKILL 后的全量通知 outbox:已创建的执行器任务仍由持久队列恢复;直接 webhook 和父终态到通知子任务创建之间的持久补投仍是独立边界。接收方需要按原事件 ID 去重,部分或未知送达不能盲目重发。
222
+ - 历史 v0.9.3 的排空不提供 SIGKILL 后的全量通知 outbox。Core v0.9.4 增加[通知持久化](NOTIFICATION_DURABILITY.md)和 068 迁移:新终态/审批创建与意图同事务,重启仅补通知;普通告警及旧扩展保留尽力发送边界。接收方仍需按事件 ID 去重,部分或未知送达不能盲目重发。
223
223
 
224
224
  ## 8. 安全基线
225
225
 
@@ -241,3 +241,7 @@ scrape_configs:
241
241
  - 至少跑通一次真实 `/run`、工具调用、trace 和结果回传。
242
242
  - 已验证备份可恢复。
243
243
  - 已设置队列积压、错误率、executor 离线和送达死信告警。
244
+
245
+ ### Core v0.9.4 的持久通知指标
246
+
247
+ `bailinghub_notification_outbox_available{source}` 表示内置持久端口可用性;`bailinghub_notification_outbox_records{source,status}` 为各状态数量;`bailinghub_notification_outbox_oldest_pending_age_seconds{source}` 和 `bailinghub_notification_outbox_expired_leases{source}` 为最老待处理年龄及过期领取数。source 固定为 `jobs` / `approvals`。这些聚合从持久仓储读取,区别于重启后归零的后台 Promise 计数;旧扩展缺少能力时只输出 available=0,不捏造 backlog=0。查询失败沿用采集失败/超时状态,不触发补发。
package/docs/README.en.md CHANGED
@@ -7,6 +7,10 @@ This directory contains public documentation for the open-source BailingHub proj
7
7
  | Document | Purpose |
8
8
  |---|---|
9
9
  | [IMPLEMENTATION_STATUS.en.md](IMPLEMENTATION_STATUS.en.md) · [Chinese](IMPLEMENTATION_STATUS.md) | Core ownership, formal releases versus main, public evidence, and uncovered scope. |
10
+ | [RELEASE_NOTES_v0.9.4.en.md](RELEASE_NOTES_v0.9.4.en.md) · [Chinese](RELEASE_NOTES_v0.9.4.md) | v0.9.4: DOCX dependency remediation, durable notifications and console recovery. |
11
+ | [UPGRADE_v0.9.4.en.md](UPGRADE_v0.9.4.en.md) · [Chinese](UPGRADE_v0.9.4.md) | Explicit migration 068, state/configuration databases, event deduplication and rollback limits. |
12
+ | [NOTIFICATION_DURABILITY.en.md](NOTIFICATION_DURABILITY.en.md) · [Chinese](NOTIFICATION_DURABILITY.md) | Notification persistence, recovery, operator actions, persistent metrics and external delivery limits. |
13
+ | [DOCX_DEPENDENCY.en.md](DOCX_DEPENDENCY.en.md) · [Chinese](DOCX_DEPENDENCY.md) | Pinned Mammoth library provenance, CLI-chain removal and strict auditing. |
10
14
  | [RELEASE_NOTES_v0.9.3.en.md](RELEASE_NOTES_v0.9.3.en.md) · [Chinese](RELEASE_NOTES_v0.9.3.md) | v0.9.3: bounded bodies, graceful notification close and original-notification DLQ replay, with maintenance metrics. |
11
15
  | [UPGRADE_v0.9.3.en.md](UPGRADE_v0.9.3.en.md) · [Chinese](UPGRADE_v0.9.3.md) | Explicit migration 067, matching DLQ/state adapters, rollback manifests and preserved markers. |
12
16
  | [RELEASE_NOTES_v0.9.2.en.md](RELEASE_NOTES_v0.9.2.en.md) · [Chinese](RELEASE_NOTES_v0.9.2.md) | v0.9.2: secure installation, automatic settlement and original approval continuation, with deployment diagnostics and process tests. |
package/docs/README.md CHANGED
@@ -9,6 +9,10 @@
9
9
  | 文档 | 用途 |
10
10
  |---|---|
11
11
  | [IMPLEMENTATION_STATUS.md](IMPLEMENTATION_STATUS.md) · [English](IMPLEMENTATION_STATUS.en.md) | Core 能力归属、正式发行与主分支状态、公开证据和未覆盖范围。 |
12
+ | [RELEASE_NOTES_v0.9.4.md](RELEASE_NOTES_v0.9.4.md) · [English](RELEASE_NOTES_v0.9.4.en.md) | v0.9.4:DOCX 依赖处置、通知持久化与控制台补发。 |
13
+ | [UPGRADE_v0.9.4.md](UPGRADE_v0.9.4.md) · [English](UPGRADE_v0.9.4.en.md) | 068 显式迁移、状态/配置库、事件去重和回退限制。 |
14
+ | [NOTIFICATION_DURABILITY.md](NOTIFICATION_DURABILITY.md) · [English](NOTIFICATION_DURABILITY.en.md) | 通知保存、恢复、人工处置、持久指标和外部送达边界。 |
15
+ | [DOCX_DEPENDENCY.md](DOCX_DEPENDENCY.md) · [English](DOCX_DEPENDENCY.en.md) | 固定 Mammoth 库来源、CLI 链移除和严格审计。 |
12
16
  | [RELEASE_NOTES_v0.9.3.md](RELEASE_NOTES_v0.9.3.md) · [English](RELEASE_NOTES_v0.9.3.en.md) | v0.9.3:有限收包、通知关闭与原通知死信重投,含维护指标。 |
13
17
  | [UPGRADE_v0.9.3.md](UPGRADE_v0.9.3.md) · [English](UPGRADE_v0.9.3.en.md) | 067 显式迁移、配套 DLQ/state 仓储、回退 manifest 与标记保留。 |
14
18
  | [RELEASE_NOTES_v0.9.2.md](RELEASE_NOTES_v0.9.2.md) · [English](RELEASE_NOTES_v0.9.2.en.md) | v0.9.2:安全安装、自动结算与原审批补续,含部署诊断与进程回归。 |
@@ -1,5 +1,5 @@
1
- # Current release: Core 0.9.1
1
+ # Current release: Core 0.9.4
2
2
 
3
- Core 0.9.1 fixes asynchronous usage shutdown, adds a public capability/evidence index, and includes general security governance. No new APIs, SQL, plan rules, or client features are introduced. SDK 0.7.0 / DSH 0.7.0 remain unchanged.
3
+ Core 0.9.4 removes the unused DOCX CLI dependency chain and adds durable notifications for new terminal transitions and approval prompts, bundled console retry and persistent metrics. Explicitly apply 068; receivers deduplicate event IDs, unknown receipt requires operator verification, and business parents are not rerun. SDK 0.7.0 / DSH 0.7.0 remain unchanged; independent consumers upgrade separately.
4
4
 
5
- [Core 0.9.1 release notes](RELEASE_NOTES_v0.9.1.en.md) · [Upgrade guide](UPGRADE_v0.9.1.en.md) · [Billing contract](MODEL_BILLING.en.md) · [简体中文](RELEASE_NOTES_NEXT.md)
5
+ [Core 0.9.4 release notes](RELEASE_NOTES_v0.9.4.en.md) · [Upgrade guide](UPGRADE_v0.9.4.en.md) · [Notification contract](NOTIFICATION_DURABILITY.en.md) · [简体中文](RELEASE_NOTES_NEXT.md)
@@ -1,5 +1,5 @@
1
- # 当前版本:Core 0.9.1
1
+ # 当前版本:Core 0.9.4
2
2
 
3
- Core 0.9.1 修复异步 usage 工作关闭等待,增加公开能力与证据索引,并纳入通用安全治理。没有新增 API、SQL、套餐或客户端功能;SDK 0.7.0 / DSH 0.7.0 不变。
3
+ Core 0.9.4 移除 DOCX 未使用的 CLI 依赖链,增加新任务终态与审批提示的持久通知、自带控制台补发和持久指标。升级须显式应用 068;接收方按事件 ID 去重,未知送达人工核对,不重跑业务父任务。SDK 0.7.0 / DSH 0.7.0 不变,独立消费者另行升级。
4
4
 
5
- [Core 0.9.1 版本说明](RELEASE_NOTES_v0.9.1.md) · [升级指南](UPGRADE_v0.9.1.md) · [计费契约](MODEL_BILLING.md) · [English](RELEASE_NOTES_NEXT.en.md)
5
+ [Core 0.9.4 版本说明](RELEASE_NOTES_v0.9.4.md) · [升级指南](UPGRADE_v0.9.4.md) · [通知契约](NOTIFICATION_DURABILITY.md) · [English](RELEASE_NOTES_NEXT.en.md)
@@ -0,0 +1,42 @@
1
+ # v0.9.4: DOCX dependency remediation and durable notifications
2
+
3
+ [简体中文](RELEASE_NOTES_v0.9.4.md)
4
+
5
+ Version date: 2026-10-15. A patch from public Core 0.9.3.
6
+
7
+ An after-sales task finishes, but Core is killed before sending its result notification. Rerunning the business task could issue a second refund, while graceful shutdown alone cannot recover this gap. BailingHub 0.9.4 commits terminal state and notification intent together in built-in stores, then resumes the original notification while preserving the business result. It also removes an unused vulnerable CLI dependency chain from DOCX parsing and adds notification operations to its bundled console.
8
+
9
+ ## Fixes
10
+
11
+ ### Retain the DOCX parser and remove its CLI dependency chain
12
+
13
+ Core file context and console knowledge-base import retain Mammoth 1.12.0's original parsing sources. The explicitly modified `@bailinghub/mammoth-library@1.12.0-bailinghub.1` distribution keeps upstream library sources, types, browser adaptations and the BSD-2-Clause license, while removing the unused CLI and `argparse → sprintf-js` chain.
14
+
15
+ Core, console, source exports and Docker use one pinned archive; the npm artifact bundles the library and its runtime dependencies. The former temporary audit exception is retired. Gates require zero raw findings in both dependency trees and separately query direct advisories under the original `mammoth@1.12.0` identity. Provenance integrity and individual source files are publicly verifiable. This remediates this project's distribution, not upstream sprintf-js, and does not establish that arbitrary DOCX files are safe. See [DOCX dependency verification](DOCX_DEPENDENCY.en.md).
16
+
17
+ ### Persist business results and notification intents together
18
+
19
+ The MySQL state store commits terminal Job state and notification intents together. Approval creation and its notification share a transaction in the owning configuration database, which may be separate. JSONL stores both in one synced record and remains a single-writer implementation.
20
+
21
+ Coverage includes callbacks from new terminal transitions, configured result delivery, approval prompts and dead-letter recording for failed notification children. Startup and maintenance recover pending intents with bounded batches, leases, retries and stale-worker fencing. Historical completed tasks or old pending approvals are not bulk-converted into new notifications, and notification recovery never reruns the business parent. Ordinary monitoring alerts and legacy adapters without durable ports remain best effort.
22
+
23
+ Webhooks wait for real HTTP responses and identify the original event through `X-Bailing-Event-Id` and signed-body `notification_event_id`. Lost acknowledgements can cause redelivery; receivers must deduplicate. Exhausted retry cycles retain failed records, so at-least-once semantics do not promise unlimited retries or guaranteed receipt. Native partial/unknown delivery or expired in-flight claims become `uncertain`, requiring receiver verification before manual handling. See [durable notifications](NOTIFICATION_DURABILITY.en.md).
24
+
25
+ ## Bundled console and persistent metrics
26
+
27
+ The bundled console's Tasks notification view provides type/status filters, summaries and failed-event retry. Reading requires `runs:read`; retry requires `runs:write`, and unknown receipt requires explicit confirmation of duplicate risk. The admin API compares the observed state before mutation and handles only the notification, never business re-execution.
28
+
29
+ The optional protected `/metrics` endpoint adds outbox availability, status counts, oldest pending age and expired lease counts under fixed `jobs` / `approvals` sources. It reads persistent aggregates without body, recipient, event or tenant labels, and does not invent zero backlogs for unsupported stores. Automatic cleanup and historical archival are not included; operators should monitor growth.
30
+
31
+ ## Upgrade and boundaries
32
+
33
+ - **Core operators:** back up original artifacts, configuration, state/configuration databases and JSONL, then explicitly apply `068_notification_outbox.sql`. Both independent state and configuration databases need migration. `npm run db:init` handles only the configured MySQL state database; use the official migration API separately for an independent configuration database.
34
+ - **Embedded and custom-store developers:** use matching built-in stores or implement the optional durable ports' transaction/lease semantics. Continue existing `tick()` and `close(drainMs)` calls. Legacy third-party stores do not gain a durability guarantee through the compatibility path.
35
+ - **Notification receivers:** deduplicate stable event IDs and verify external outcomes. Notification `completed` may mean handoff to a durable executor, not a person reading it. Native-event-linked dead letters recover through the outbox only; 067's original executor-notification replay remains available.
36
+ - **Independent projects:** MCP / Agent Client SDK 0.7.0 and DSH 0.7.0 remain unchanged. ACC, clients, independent Hosts and individual deployments release or upgrade separately.
37
+
38
+ Migration 068 creates the outbox and adds a nullable dead-letter event reference with a unique index. Migration 067 and earlier files are unchanged, and historical notifications are not invented. Old code cannot process the new outbox or undo sent messages; preserve events, dead letters, receipts and migration history, using a consistent backup and reconciliation procedure. See the [upgrade guide](UPGRADE_v0.9.4.en.md).
39
+
40
+ Public regressions cover upstream parsing compatibility, real npm consumers, browser console behavior, actual JSONL SIGKILL, MySQL transactions/lost acknowledgements, lease fencing, approvals, migration 067 to 068 and original-notification replay. They use synthetic data and local receivers, not live-channel receipt, deployment acceptance or production rollback drills. They do not guarantee recovery from disk corruption or unverified external effects.
41
+
42
+ [Upgrade guide](UPGRADE_v0.9.4.en.md) · [Full changelog](CHANGELOG.en.md) · [Capability and evidence index](IMPLEMENTATION_STATUS.en.md) · [Previous release](RELEASE_NOTES_v0.9.3.en.md)
@@ -0,0 +1,42 @@
1
+ # v0.9.4:DOCX 依赖修复与通知持久化
2
+
3
+ [English](RELEASE_NOTES_v0.9.4.en.md)
4
+
5
+ 版本日期:2026-10-15。相对公开 Core 0.9.3 的补丁更新。
6
+
7
+ 一笔售后任务已经完成,Core 却在结果通知发出前被强制终止。只重启业务任务可能造成第二次退款;只依赖正常关闭排空也无法恢复这段空隙。百灵中枢(BailingHub)0.9.4 在内置仓储中同时保存任务终态和通知意图,重启后继续原通知,保留原业务结果。它同时移除 DOCX 解析未使用且存在已知漏洞的 CLI 依赖链,并在自带控制台提供通知处置入口。
8
+
9
+ ## 修复了什么
10
+
11
+ ### DOCX 保留解析库,移除 CLI 依赖链
12
+
13
+ Core 文件上下文和控制台知识库导入继续使用 Mammoth 1.12.0 的原始解析代码。带有明确修改标记的 `@bailinghub/mammoth-library@1.12.0-bailinghub.1` 保留上游库源码、类型、浏览器适配与 BSD-2-Clause 许可证,去掉未使用的命令行入口及 `argparse → sprintf-js` 链。
14
+
15
+ Core、控制台、源码导出和 Docker 使用同一份固定归档;npm 制品捆绑库及其运行依赖。原限时审计例外退役,门禁要求两棵依赖树原始审计均为零,并以 `mammoth@1.12.0` 原名另查直接公告。来源完整性和逐文件清单可公开重验。这是本项目分发依赖的处置,不是上游 `sprintf-js` 已修复或任意 DOCX 都安全的声明。见 [DOCX 依赖与校验](DOCX_DEPENDENCY.md)。
16
+
17
+ ### 任务结果与通知意图一起保存
18
+
19
+ MySQL 状态库将任务终态与通知意图写入同一事务;审批创建及其提示保存在审批配置库的同一事务,两库可以独立。JSONL 用同一条同步落盘记录保存任务和意图,仍只支持单写者。
20
+
21
+ 覆盖新任务终态产生的 callback、配置的结果送达、审批提示和失败通知子任务的死信留存。启动及维护周期恢复待处理通知,有限批次、租约、重试和旧 worker 确认隔离限制重复处理。不会把历史已完成任务或旧待审批单批量变成新通知,也不会为补消息重跑业务父任务。普通监控告警及未实现持久化端口的旧扩展仍为尽力发送。
22
+
23
+ Webhook 等待真实 HTTP 响应,以稳定的 `X-Bailing-Event-Id` 和签名正文 `notification_event_id` 标识原事件。确认丢失后可能重复送达,接收方必须去重;有界重试耗尽后保留失败记录,不能把“至少一次”理解为无限重试或必达。原生渠道出现部分、未知送达或过期在途领取时进入 `uncertain`,核对接收端后再人工处理。详情见[通知持久化](NOTIFICATION_DURABILITY.md)。
24
+
25
+ ## 新增控制台与持久指标
26
+
27
+ 自带控制台「任务 → 通知送达」支持类型/状态筛选、摘要和失败重试。查看需要 `runs:read`,重试需要 `runs:write`;未知送达需显式确认重复风险。管理 API 使用观察到的状态做并发校验,只处置通知,不重新执行业务。
28
+
29
+ 可选受保护的 `/metrics` 增加固定 `jobs` / `approvals` 来源的 outbox 可用性、状态数量、最老待处理年龄和过期租约数。它读取持久聚合,不含正文、收件地址、事件或租户标签;缺少能力时不伪造零积压。当前没有自动清理和历史归档策略,部署者需要观察数据增长。
30
+
31
+ ## 升级与边界
32
+
33
+ - **Core 管理员**:备份原制品、配置、状态/配置数据库和 JSONL,显式应用新增的 `068_notification_outbox.sql`。独立配置库和状态库都要迁移;`npm run db:init` 仅处理配置中的 MySQL 状态库,独立配置库需使用官方迁移 API 另行处理。
34
+ - **嵌入式与自定义仓储开发者**:使用配套内置仓储,或实现可选持久化端口的事务/租约语义;继续调用既有 `tick()` 和 `close(drainMs)`。第三方旧仓储兼容路径不获得持久性承诺。
35
+ - **通知接收方**:按稳定事件 ID 去重并核对外部结果;通知 `completed` 可能表示已交给持久执行器,不等于收件人已阅读。关联原生事件的死信统一从 outbox 补发,067 执行器原通知重投继续保留。
36
+ - **独立项目**:MCP / Agent Client SDK 0.7.0、DSH 0.7.0 不变。ACC、客户端、独立 Host 与具体部署各自发行和升级。
37
+
38
+ 新增 068 建立 outbox 表并给死信增加可空事件关联及唯一索引;067 及以前迁移保持原样,不批量补造旧通知。回退旧代码不能继续处理新 outbox,也不能撤销已外发消息;保留事件、死信、回执和迁移账本,按一致备份及核对流程处理。见[升级指南](UPGRADE_v0.9.4.md)。
39
+
40
+ 公开回归覆盖官方解析兼容、真实 npm 消费、控制台浏览器、JSONL 实际 SIGKILL、MySQL 事务与确认丢失、租约隔离、审批、旧 067 到 068 和原通知重投。使用合成数据及本地接收端;它们不代替真实渠道收件、目标部署验收或生产回滚演练,也不保证磁盘损坏或未经验证的外部副作用可恢复。
41
+
42
+ [升级指南](UPGRADE_v0.9.4.md) · [完整版本记录](CHANGELOG.md) · [能力与证据索引](IMPLEMENTATION_STATUS.md) · [上一版本](RELEASE_NOTES_v0.9.3.md)
@@ -0,0 +1,57 @@
1
+ # Core v0.9.4 patch upgrade guide
2
+
3
+ [简体中文](UPGRADE_v0.9.4.md)
4
+
5
+ Upgrade public Core 0.9.3 to 0.9.4 to remove the unused DOCX CLI dependency chain and add durable notification intents for new terminal transitions and approval prompts, with bundled console management. This guide covers Core only. SDK/DSH remain at 0.7.0; ACC, clients and independent Hosts release and deploy separately.
6
+
7
+ ## 1. Preserve consistent backups and pause writers
8
+
9
+ Retain the current code/image digest, configuration and credentials, attachments, state/configuration databases, JSONL, migration history and previous artifacts. Databases may differ: terminal tasks belong to the state database, while approvals and their prompts belong to the configuration database. Identify and back up each actual target. Notification snapshots contain business bodies and destinations; protect them like original task data and exclude them from public reports.
10
+
11
+ Stop new work, coordinate all writers sharing these stores, and drain old instances. Reconcile in-flight notifications, original jobs/requests/approvals and external receipts. Preserve IDs, dead-letter replay markers and queues. Successful old-instance shutdown does not establish receipt of intents that were never persisted; upgrading does not bulk-notify historical completed tasks or old approvals.
12
+
13
+ ## 2. Verify artifacts and explicitly migrate
14
+
15
+ Use formal `v0.9.4` source, `bailinghub@0.9.4` or images, checking Tag/commit, version and artifact digest. Installer and prebuilt Compose defaults become 0.9.4, preserving existing `.env` files. DOCX now uses a pinned repository-local library archive; changing only the version field or retaining the old dependency tree is insufficient. Operators need not modify upstream sources themselves.
16
+
17
+ | Migration added since 0.9.3 | Purpose |
18
+ | --- | --- |
19
+ | `068_notification_outbox.sql` | Create `bz_notification_outbox` for events, snapshots, state, retries and leases; add nullable `event_id` and a unique index to `bz_delivery_dlq` |
20
+
21
+ Migration 067 and earlier files are unchanged. Use the new artifact's official explicit migrator to apply all pending SQL, checking the full `BAILINGHUB_CORE_ARTIFACT_V1` manifest. Do not edit historical SQL or migration records; Kernel startup does not migrate automatically.
22
+
23
+ ```bash
24
+ npm run db:init
25
+ ```
26
+
27
+ **This CLI migrates only the currently configured `state.mysql`.** If approvals use an independent MySQL configuration database, separately invoke official `migrateBailingHubCoreSchema({ mysql: configurationDatabase })` with the deployment's verified target connection settings. A shared database needs one invocation; do not migrate the same database concurrently. JSONL state needs no SQL migration, but its MySQL configuration database still needs 068. See the [Kernel Host API](KERNEL_HOST_API.en.md) for entry points and authority. Earlier upgrades must also apply preceding migrations; see the [0.9.3 guide](UPGRADE_v0.9.3.en.md).
28
+
29
+ Migration creates no historical notifications. JSONL uses synced compound records and one writer; never let old and new instances write the same log concurrently. Incomplete tails can recover under store rules; damaged complete records stop processing and must not be removed from the middle of history merely to force startup.
30
+
31
+ ## 3. Match stores and receivers
32
+
33
+ Upgrade official state/configuration stores and DLQ ledgers with Core. Custom stores need the optional durable ports and their transaction, lease-token and original-event retry semantics. Unsupported stores retain the old best-effort compatibility path, with unavailable management capability, not reliable recovery.
34
+
35
+ Webhook receivers persist deduplication records keyed by `X-Bailing-Event-Id` or signed-body `notification_event_id`. Network errors, 429 and 5xx can retry with bounded backoff; ordinary 4xx stop. An automatic cycle permits at most six send attempts and retains an exhausted failure. A receiver success followed by a lost local acknowledgement can send the same event again; leases do not guarantee exactly-once external effects.
36
+
37
+ Native partial/unknown receipt or expired in-flight claims become `uncertain`. The bundled Tasks notification view permits retry only with `runs:write` and explicit duplicate-risk verification. A changed state conflicts rather than overwriting newer state. Native-event-linked dead letters retry through the outbox only; 067 executor dead letters still requeue only the original notification child. Recovery never reruns the business parent, and notification `completed` does not mean a person has read it.
38
+
39
+ Embedded hosts retain existing fair `tick()` and `close(drainMs)` calls. Graceful close stops scanning and waits for accepted work; subsequent instances recover remaining durable records. Ordinary alerts and arbitrary external extensions are outside this durability guarantee.
40
+
41
+ ## 4. Accept the upgrade
42
+
43
+ 1. Check artifact identity, both actual database roles' migration history/068 table and index, `/health`, readiness, console and existing smoke. Optional read-only `npm run --silent doctor -- --deployment --url http://127.0.0.1:18900 --readiness --json` neither migrates nor independently confirms every database identity or image digest.
44
+ 2. Use isolated data and local receivers to verify atomic terminal/approval intent storage. After interruption and restart, recover the same notification event without increasing business dispatch count. Verify receiver deduplication when processing succeeds but acknowledgement is lost.
45
+ 3. Verify stale workers cannot acknowledge successor leases, uncertain native receipt stops automatic replay, read-only console users cannot retry, and stale observed states return 409. Preserve 067's original-notification admission deduplication.
46
+ 4. Verify existing DOCX paths in the console and actual npm consumption. Public gates include `npm run docx:vendor:verify-upstream`, `npm run docx:test`, `npm run docx:browser:test` after the console build, and `npm run audit:deps`. Zero raw audit findings do not make arbitrary documents safe.
47
+ 5. If protected `/metrics` is enabled, check fixed `jobs` / `approvals` availability, persisted state counts, pending age and expired leases. Reading metrics never sends notifications, and unsupported ports do not invent zero backlog. No outbox cleanup policy is included; monitor growth.
48
+
49
+ See [durable notifications](NOTIFICATION_DURABILITY.en.md) and [dependency verification](DOCX_DEPENDENCY.en.md) for regression entry points. Conditional skips are not passes; synthetic release checks do not replace live-channel deployment acceptance.
50
+
51
+ ## 5. Rollback limits
52
+
53
+ First stop admission, notification workers and shared writers. Preserve outbox, dead letters, original tasks, queues, receipts and migration history; reconcile sent and uncertain notifications. **Old code cannot process the new outbox, and old schema manifests may reject migration 068.** Additive tables do not establish safe direct downgrade. Never delete migration records, events or replay markers to bypass checks.
54
+
55
+ Validate the intended code/configuration/database combination in an isolated copy. Restore backups as a consistent set when needed, separately reconciling business and messages after the backup point; database restore cannot undo an external refund or sent notification. Returning to 0.9.3 also restores its old DOCX dependency chain and time-limited risk, and loses new durable notifications. It cannot retain claims that dependency remediation or crash recovery remain effective.
56
+
57
+ [Release notes](RELEASE_NOTES_v0.9.4.en.md) · [Notification contract](NOTIFICATION_DURABILITY.en.md) · [Compatibility policy](COMPATIBILITY.en.md)
@@ -0,0 +1,57 @@
1
+ # Core v0.9.4 补丁升级指南
2
+
3
+ [English](UPGRADE_v0.9.4.en.md)
4
+
5
+ 从公开 Core 0.9.3 升级到 0.9.4,移除 DOCX 未使用的 CLI 依赖链,并为新任务终态与审批提示提供持久通知及自带控制台管理。本指南仅涉及 Core;SDK/DSH 仍为 0.7.0,ACC、客户端及独立 Host 按各自流程发行和部署。
6
+
7
+ ## 1. 保存一致备份并暂停写入
8
+
9
+ 保留当前代码或镜像摘要、配置和凭据、附件、状态与配置数据库、JSONL、迁移账本及旧制品。数据库可能分开:任务终态属于状态库,审批与审批提示属于配置库;分别确认实际数据库身份并备份。通知快照含业务正文和目的地址,按原任务数据等级保护,不能复制到公开报告。
10
+
11
+ 停止新工作并协调所有共用库的写入方,排空旧实例。核对在途通知、原任务/请求/审批和外部回执。保留原 ID、死信重投标记及队列;旧实例关闭完成不证明从未持久保存的通知意图已经送达,升级不会批量补发历史已完成任务和旧审批。
12
+
13
+ ## 2. 核对制品并显式迁移
14
+
15
+ 使用正式 `v0.9.4` 源码、`bailinghub@0.9.4` 或镜像,核对 Tag/提交、版本和制品摘要。安装器及预构建 Compose 默认版本为 0.9.4,已有 `.env` 保留。DOCX 依赖改为仓内固定库归档;不要仅更新版本字段或保留旧锁树,也不需要自行修改上游包源码。
16
+
17
+ | 相对 0.9.3 新增迁移 | 作用 |
18
+ | --- | --- |
19
+ | `068_notification_outbox.sql` | 建立 `bz_notification_outbox`,保存事件、快照、状态、重试与租约;给 `bz_delivery_dlq` 增加可空 `event_id` 及唯一索引 |
20
+
21
+ 067 及以前的迁移保持原样。使用新制品自带的官方显式迁移器执行全部待执行 SQL,核对完整 `BAILINGHUB_CORE_ARTIFACT_V1` manifest;不手工修改旧 SQL 或迁移账本,Kernel 启动不自动迁移。
22
+
23
+ ```bash
24
+ npm run db:init
25
+ ```
26
+
27
+ **该 CLI 只迁移当前配置中的 `state.mysql`。** 如果审批使用独立 MySQL 配置库,必须额外对该库调用官方 `migrateBailingHubCoreSchema({ mysql: configurationDatabase })`,由部署方提供已确认的目标连接配置。状态/配置共库时只执行一次;不要并行迁移同一库。JSONL 状态存储不需要 SQL 迁移,但其 MySQL 配置库仍需 068。配置库入口和权限见 [Kernel Host API](KERNEL_HOST_API.md)。更早版本须补齐前序迁移,参见 [0.9.3 升级指南](UPGRADE_v0.9.3.md)。
28
+
29
+ 迁移完成不创建历史通知。JSONL 使用同步复合日志记录且只支持一个 writer;不要让新旧实例同时写同一日志。未完成尾行可按仓储规则恢复,完整记录损坏应停止处理,不能删除中间历史来强行启动。
30
+
31
+ ## 3. 配套仓储和接收方
32
+
33
+ 官方状态/配置仓储、DLQ ledger 与 Core 一起更新。自定义仓储需实现可选持久端口及事务、租约 token、原事件重试语义;未实现时保留旧尽力发送兼容路径,管理接口显示能力不可用,不能据此宣称可靠补投。
34
+
35
+ Webhook 接收端按 `X-Bailing-Event-Id` 或签名正文 `notification_event_id` 保存去重记录。网络中断、429、5xx 可有限退避重试;普通 4xx 停止,自动周期最多六次发送尝试,耗尽后保留失败记录。接收方处理成功而本地确认丢失会再次发送同一事件;租约不保证跨系统恰好一次。
36
+
37
+ 原生部分/未知送达或过期在途领取为 `uncertain`。控制台「任务 → 通知送达」只允许有 `runs:write` 权限者重新处理,并要求核对重复风险;状态改变返回冲突,不覆盖新状态。关联原生事件的死信统一通过 outbox 重试;067 执行器死信仍只重排原通知子任务。补通知不重跑业务父任务,不将通知 `completed` 当作收件人已阅读。
38
+
39
+ 嵌入式继续公平调用既有 `tick()` 和 `close(drainMs)`;正常关闭停止扫描并等待已接受的工作,剩余持久记录由后续实例恢复。普通告警和任意外部扩展不纳入本次完整持久化保证。
40
+
41
+ ## 4. 升级验收
42
+
43
+ 1. 核对新制品身份、两类目标库的迁移账本/068 表和索引、`/health`、readiness、控制台与既有 smoke。可显式运行只读 `npm run --silent doctor -- --deployment --url http://127.0.0.1:18900 --readiness --json`;它不执行迁移,也不独立确认所有数据库身份或镜像摘要。
44
+ 2. 在隔离数据和本地接收端上验证:新任务终态/审批创建与意图一起保存;中断重启后同事件补通知,原业务派发次数不增加。验证接收端处理后确认丢失的重复可被事件 ID 去重。
45
+ 3. 验证旧 worker 不能确认新租约;原生未知态停止自动重发;控制台只读角色不能重试、并发旧状态返回 409。保留旧 067 原通知重投的入队去重保证。
46
+ 4. 验证控制台和实际 npm 消费的 DOCX 既有解析路径。`npm run docx:vendor:verify-upstream`、`npm run docx:test`、构建后的 `npm run docx:browser:test` 及 `npm run audit:deps` 提供公开验证入口。原始审计零发现不等于任意文档安全。
47
+ 5. 如启用受保护 `/metrics`,核对固定 `jobs` / `approvals` 的可用性、持久状态数、待处理年龄及过期租约。指标读取不触发发送,未实现端口不伪造零积压。当前没有 outbox 自动清理策略,应监测数据增长。
48
+
49
+ 完整回归入口见[通知持久化](NOTIFICATION_DURABILITY.md)和[依赖校验](DOCX_DEPENDENCY.md)。条件跳过不能算通过;发行合成测试不代替目标环境真实渠道验收。
50
+
51
+ ## 5. 回退边界
52
+
53
+ 先停止新接单、通知 worker 和共用写入方,保存 outbox、死信、原任务、队列、回执与迁移账本,核对已经送出和仍未知的通知。**旧代码不会处理新 outbox,旧 schema manifest 也可能拒绝未知的 068 账本。** 增量表不代表可以无验证直接降级,不得删迁移记录、通知事件或重投标记来绕过检查。
54
+
55
+ 在隔离副本验证拟恢复的代码/配置/数据库组合。需要恢复备份时按一致集合恢复,另外核对备份以后发生的业务和消息;恢复数据库不能撤销外部退款或已发通知。回退到 0.9.3 同时恢复旧 DOCX 依赖链与其原限时风险,并失去新通知持久化能力,不能继续宣称依赖修复或崩溃补投已生效。
56
+
57
+ [版本说明](RELEASE_NOTES_v0.9.4.md) · [通知契约](NOTIFICATION_DURABILITY.md) · [兼容策略](兼容性与升级.md)