bailinghub 0.9.3 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1264) 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 +8 -8
  9. package/docker-compose.images.yml +2 -2
  10. package/docs/AGENT_CLIENT_QUICKSTART.en.md +1 -3
  11. package/docs/AGENT_CLIENT_QUICKSTART.md +1 -1
  12. package/docs/AGENT_CLIENT_RUNTIME_API.en.md +87 -2
  13. package/docs/AGENT_CLIENT_RUNTIME_API.md +36 -2
  14. package/docs/AGENT_KNOWLEDGE_API.en.md +77 -0
  15. package/docs/AGENT_KNOWLEDGE_API.md +86 -0
  16. package/docs/AGENT_TASK_CONTROL.md +4 -4
  17. package/docs/AGENT_TASK_CONTROL_FOUNDATION.md +1 -1
  18. package/docs/ARCHITECTURE.md +4 -0
  19. package/docs/CHANGELOG.en.md +24 -1
  20. package/docs/CHANGELOG.md +24 -1
  21. package/docs/COMPATIBILITY.en.md +27 -1
  22. package/docs/CONTRACT.en.md +1 -1
  23. package/docs/CONTRACT.md +1 -1
  24. package/docs/DOCX_DEPENDENCY.en.md +26 -0
  25. package/docs/DOCX_DEPENDENCY.md +26 -0
  26. package/docs/IMPLEMENTATION_STATUS.en.md +23 -15
  27. package/docs/IMPLEMENTATION_STATUS.md +23 -15
  28. package/docs/INDEPENDENT_VALIDATION.en.md +6 -4
  29. package/docs/INDEPENDENT_VALIDATION.md +6 -4
  30. package/docs/INTEGRATION_WALKTHROUGH.md +65 -0
  31. package/docs/MODEL_BILLING.en.md +2 -0
  32. package/docs/MODEL_BILLING.md +6 -2
  33. package/docs/MODEL_CONTINUATION.en.md +54 -0
  34. package/docs/MODEL_CONTINUATION.md +54 -0
  35. package/docs/MODEL_OUTPUT_BUDGET.en.md +69 -0
  36. package/docs/MODEL_OUTPUT_BUDGET.md +69 -0
  37. package/docs/NOTIFICATION_DURABILITY.en.md +47 -0
  38. package/docs/NOTIFICATION_DURABILITY.md +47 -0
  39. package/docs/OPERATIONS.en.md +22 -6
  40. package/docs/OPERATIONS.md +22 -6
  41. package/docs/QUICKSTART.md +1 -1
  42. package/docs/README.en.md +9 -0
  43. package/docs/README.md +9 -0
  44. package/docs/RELEASE_NOTES_NEXT.en.md +3 -3
  45. package/docs/RELEASE_NOTES_NEXT.md +3 -3
  46. package/docs/RELEASE_NOTES_v0.10.0.en.md +58 -0
  47. package/docs/RELEASE_NOTES_v0.10.0.md +58 -0
  48. package/docs/RELEASE_NOTES_v0.9.4.en.md +42 -0
  49. package/docs/RELEASE_NOTES_v0.9.4.md +42 -0
  50. package/docs/UPGRADE_PLAN.en.md +118 -0
  51. package/docs/UPGRADE_PLAN.md +124 -0
  52. package/docs/UPGRADE_v0.10.0.en.md +47 -0
  53. package/docs/UPGRADE_v0.10.0.md +47 -0
  54. package/docs/UPGRADE_v0.9.4.en.md +57 -0
  55. package/docs/UPGRADE_v0.9.4.md +57 -0
  56. package/docs//345/205/274/345/256/271/346/200/247/344/270/216/345/215/207/347/272/247.md +38 -22
  57. package/node_modules/@xmldom/xmldom/CHANGELOG.md +533 -0
  58. package/node_modules/@xmldom/xmldom/LICENSE +8 -0
  59. package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
  60. package/node_modules/@xmldom/xmldom/index.d.ts +96 -0
  61. package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
  62. package/node_modules/@xmldom/xmldom/lib/conventions.js +214 -0
  63. package/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
  64. package/node_modules/@xmldom/xmldom/lib/dom.js +2266 -0
  65. package/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
  66. package/node_modules/@xmldom/xmldom/lib/index.js +4 -0
  67. package/node_modules/@xmldom/xmldom/lib/sax.js +683 -0
  68. package/node_modules/@xmldom/xmldom/package.json +75 -0
  69. package/node_modules/@xmldom/xmldom/readme.md +356 -0
  70. package/node_modules/base64-js/LICENSE +21 -0
  71. package/node_modules/base64-js/README.md +34 -0
  72. package/node_modules/base64-js/base64js.min.js +1 -0
  73. package/node_modules/base64-js/index.d.ts +3 -0
  74. package/node_modules/base64-js/index.js +150 -0
  75. package/node_modules/base64-js/package.json +47 -0
  76. package/node_modules/bluebird/LICENSE +21 -0
  77. package/node_modules/bluebird/README.md +51 -0
  78. package/node_modules/bluebird/changelog.md +1 -0
  79. package/node_modules/bluebird/js/browser/bluebird.core.js +3739 -0
  80. package/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
  81. package/node_modules/bluebird/js/browser/bluebird.js +5581 -0
  82. package/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
  83. package/node_modules/bluebird/js/release/any.js +21 -0
  84. package/node_modules/bluebird/js/release/assert.js +55 -0
  85. package/node_modules/bluebird/js/release/async.js +161 -0
  86. package/node_modules/bluebird/js/release/bind.js +67 -0
  87. package/node_modules/bluebird/js/release/bluebird.js +11 -0
  88. package/node_modules/bluebird/js/release/call_get.js +123 -0
  89. package/node_modules/bluebird/js/release/cancel.js +129 -0
  90. package/node_modules/bluebird/js/release/catch_filter.js +42 -0
  91. package/node_modules/bluebird/js/release/context.js +69 -0
  92. package/node_modules/bluebird/js/release/debuggability.js +916 -0
  93. package/node_modules/bluebird/js/release/direct_resolve.js +46 -0
  94. package/node_modules/bluebird/js/release/each.js +30 -0
  95. package/node_modules/bluebird/js/release/errors.js +116 -0
  96. package/node_modules/bluebird/js/release/es5.js +80 -0
  97. package/node_modules/bluebird/js/release/filter.js +12 -0
  98. package/node_modules/bluebird/js/release/finally.js +111 -0
  99. package/node_modules/bluebird/js/release/generators.js +223 -0
  100. package/node_modules/bluebird/js/release/join.js +168 -0
  101. package/node_modules/bluebird/js/release/map.js +168 -0
  102. package/node_modules/bluebird/js/release/method.js +55 -0
  103. package/node_modules/bluebird/js/release/nodeback.js +51 -0
  104. package/node_modules/bluebird/js/release/nodeify.js +58 -0
  105. package/node_modules/bluebird/js/release/promise.js +773 -0
  106. package/node_modules/bluebird/js/release/promise_array.js +184 -0
  107. package/node_modules/bluebird/js/release/promisify.js +314 -0
  108. package/node_modules/bluebird/js/release/props.js +118 -0
  109. package/node_modules/bluebird/js/release/queue.js +73 -0
  110. package/node_modules/bluebird/js/release/race.js +49 -0
  111. package/node_modules/bluebird/js/release/reduce.js +172 -0
  112. package/node_modules/bluebird/js/release/schedule.js +61 -0
  113. package/node_modules/bluebird/js/release/settle.js +43 -0
  114. package/node_modules/bluebird/js/release/some.js +148 -0
  115. package/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
  116. package/node_modules/bluebird/js/release/thenables.js +86 -0
  117. package/node_modules/bluebird/js/release/timers.js +93 -0
  118. package/node_modules/bluebird/js/release/using.js +226 -0
  119. package/node_modules/bluebird/js/release/util.js +379 -0
  120. package/node_modules/bluebird/package.json +76 -0
  121. package/node_modules/core-util-is/LICENSE +19 -0
  122. package/node_modules/core-util-is/README.md +3 -0
  123. package/node_modules/core-util-is/lib/util.js +107 -0
  124. package/node_modules/core-util-is/package.json +38 -0
  125. package/node_modules/dingbat-to-unicode/README.md +79 -0
  126. package/node_modules/dingbat-to-unicode/dist/dingbats.d.ts +8 -0
  127. package/node_modules/dingbat-to-unicode/dist/dingbats.js +1066 -0
  128. package/node_modules/dingbat-to-unicode/dist/index.d.ts +7 -0
  129. package/node_modules/dingbat-to-unicode/dist/index.js +44 -0
  130. package/node_modules/dingbat-to-unicode/package.json +39 -0
  131. package/node_modules/duck/LICENSE +22 -0
  132. package/node_modules/duck/README.md +184 -0
  133. package/node_modules/duck/index.js +267 -0
  134. package/node_modules/duck/makefile +4 -0
  135. package/node_modules/duck/package.json +23 -0
  136. package/node_modules/duck/test/duck.test.js +160 -0
  137. package/node_modules/immediate/LICENSE.txt +20 -0
  138. package/node_modules/immediate/README.md +93 -0
  139. package/node_modules/immediate/dist/immediate.js +75 -0
  140. package/node_modules/immediate/dist/immediate.min.js +1 -0
  141. package/node_modules/immediate/lib/browser.js +69 -0
  142. package/node_modules/immediate/lib/index.js +73 -0
  143. package/node_modules/immediate/package.json +42 -0
  144. package/node_modules/inherits/LICENSE +16 -0
  145. package/node_modules/inherits/README.md +42 -0
  146. package/node_modules/inherits/inherits.js +9 -0
  147. package/node_modules/inherits/inherits_browser.js +27 -0
  148. package/node_modules/inherits/package.json +29 -0
  149. package/node_modules/isarray/.npmignore +1 -0
  150. package/node_modules/isarray/.travis.yml +4 -0
  151. package/node_modules/isarray/Makefile +6 -0
  152. package/node_modules/isarray/README.md +60 -0
  153. package/node_modules/isarray/component.json +19 -0
  154. package/node_modules/isarray/index.js +5 -0
  155. package/node_modules/isarray/package.json +45 -0
  156. package/node_modules/isarray/test.js +20 -0
  157. package/node_modules/jszip/.codeclimate.yml +16 -0
  158. package/node_modules/jszip/.editorconfig +8 -0
  159. package/node_modules/jszip/.eslintrc.js +43 -0
  160. package/node_modules/jszip/.github/workflows/pr.yaml +58 -0
  161. package/node_modules/jszip/.jekyll-metadata +0 -0
  162. package/node_modules/jszip/.travis.yml +17 -0
  163. package/node_modules/jszip/CHANGES.md +204 -0
  164. package/node_modules/jszip/LICENSE.markdown +651 -0
  165. package/node_modules/jszip/README.markdown +33 -0
  166. package/node_modules/jszip/deps.js +37 -0
  167. package/node_modules/jszip/dist/jszip.js +11577 -0
  168. package/node_modules/jszip/dist/jszip.min.js +13 -0
  169. package/node_modules/jszip/graph.svg +601 -0
  170. package/node_modules/jszip/index.d.ts +330 -0
  171. package/node_modules/jszip/lib/base64.js +106 -0
  172. package/node_modules/jszip/lib/compressedObject.js +74 -0
  173. package/node_modules/jszip/lib/compressions.js +14 -0
  174. package/node_modules/jszip/lib/crc32.js +77 -0
  175. package/node_modules/jszip/lib/defaults.js +11 -0
  176. package/node_modules/jszip/lib/external.js +18 -0
  177. package/node_modules/jszip/lib/flate.js +85 -0
  178. package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
  179. package/node_modules/jszip/lib/generate/index.js +57 -0
  180. package/node_modules/jszip/lib/index.js +55 -0
  181. package/node_modules/jszip/lib/license_header.js +11 -0
  182. package/node_modules/jszip/lib/load.js +88 -0
  183. package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
  184. package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
  185. package/node_modules/jszip/lib/nodejsUtils.js +57 -0
  186. package/node_modules/jszip/lib/object.js +384 -0
  187. package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
  188. package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
  189. package/node_modules/jszip/lib/reader/DataReader.js +116 -0
  190. package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
  191. package/node_modules/jszip/lib/reader/StringReader.js +38 -0
  192. package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
  193. package/node_modules/jszip/lib/reader/readerFor.js +28 -0
  194. package/node_modules/jszip/lib/signature.js +7 -0
  195. package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
  196. package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
  197. package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
  198. package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
  199. package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
  200. package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
  201. package/node_modules/jszip/lib/support.js +38 -0
  202. package/node_modules/jszip/lib/utf8.js +275 -0
  203. package/node_modules/jszip/lib/utils.js +501 -0
  204. package/node_modules/jszip/lib/zipEntries.js +261 -0
  205. package/node_modules/jszip/lib/zipEntry.js +293 -0
  206. package/node_modules/jszip/lib/zipObject.js +133 -0
  207. package/node_modules/jszip/package.json +67 -0
  208. package/node_modules/jszip/sponsors.md +21 -0
  209. package/node_modules/jszip/tsconfig.json +101 -0
  210. package/node_modules/jszip/vendor/FileSaver.js +247 -0
  211. package/node_modules/lie/README.md +62 -0
  212. package/node_modules/lie/dist/lie.js +350 -0
  213. package/node_modules/lie/dist/lie.min.js +1 -0
  214. package/node_modules/lie/dist/lie.polyfill.js +358 -0
  215. package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
  216. package/node_modules/lie/lib/browser.js +273 -0
  217. package/node_modules/lie/lib/index.js +298 -0
  218. package/node_modules/lie/license.md +7 -0
  219. package/node_modules/lie/lie.d.ts +244 -0
  220. package/node_modules/lie/package.json +69 -0
  221. package/node_modules/lie/polyfill.js +4 -0
  222. package/node_modules/lop/LICENSE +22 -0
  223. package/node_modules/lop/README.md +248 -0
  224. package/node_modules/lop/index.js +18 -0
  225. package/node_modules/lop/lib/StringSource.js +53 -0
  226. package/node_modules/lop/lib/Token.js +7 -0
  227. package/node_modules/lop/lib/TokenIterator.js +28 -0
  228. package/node_modules/lop/lib/bottom-up.js +128 -0
  229. package/node_modules/lop/lib/errors.js +22 -0
  230. package/node_modules/lop/lib/lazy-iterators.js +81 -0
  231. package/node_modules/lop/lib/parser.js +11 -0
  232. package/node_modules/lop/lib/parsing-results.js +103 -0
  233. package/node_modules/lop/lib/regex-tokeniser.js +70 -0
  234. package/node_modules/lop/lib/rules.js +313 -0
  235. package/node_modules/lop/lib/testing.js +69 -0
  236. package/node_modules/lop/makefile +4 -0
  237. package/node_modules/lop/package.json +24 -0
  238. package/node_modules/lop/test/StringSource.test.js +21 -0
  239. package/node_modules/lop/test/TokenIterator.test.js +17 -0
  240. package/node_modules/lop/test/Tokeniser.js +50 -0
  241. package/node_modules/lop/test/Tokeniser.test.js +38 -0
  242. package/node_modules/lop/test/bottom-up.test.js +187 -0
  243. package/node_modules/lop/test/errors.test.js +36 -0
  244. package/node_modules/lop/test/lazy-iterators.test.js +53 -0
  245. package/node_modules/lop/test/lop.test.js +27 -0
  246. package/node_modules/lop/test/regex-tokeniser.test.js +114 -0
  247. package/node_modules/lop/test/results.test.js +8 -0
  248. package/node_modules/lop/test/rules.test.js +617 -0
  249. package/node_modules/mammoth/LICENSE +22 -0
  250. package/node_modules/mammoth/SOURCE.json +57 -0
  251. package/node_modules/mammoth/browser/docx/files.js +14 -0
  252. package/node_modules/mammoth/browser/unzip.js +12 -0
  253. package/node_modules/mammoth/lib/document-to-html.js +469 -0
  254. package/node_modules/mammoth/lib/documents.js +254 -0
  255. package/node_modules/mammoth/lib/docx/body-reader.js +798 -0
  256. package/node_modules/mammoth/lib/docx/comments-reader.js +31 -0
  257. package/node_modules/mammoth/lib/docx/content-types-reader.js +58 -0
  258. package/node_modules/mammoth/lib/docx/document-xml-reader.js +30 -0
  259. package/node_modules/mammoth/lib/docx/docx-reader.js +226 -0
  260. package/node_modules/mammoth/lib/docx/files.js +80 -0
  261. package/node_modules/mammoth/lib/docx/notes-reader.js +28 -0
  262. package/node_modules/mammoth/lib/docx/numbering-xml.js +111 -0
  263. package/node_modules/mammoth/lib/docx/office-xml-reader.js +73 -0
  264. package/node_modules/mammoth/lib/docx/relationships-reader.js +43 -0
  265. package/node_modules/mammoth/lib/docx/style-map.js +75 -0
  266. package/node_modules/mammoth/lib/docx/styles-reader.js +90 -0
  267. package/node_modules/mammoth/lib/docx/uris.js +21 -0
  268. package/node_modules/mammoth/lib/html/ast.js +51 -0
  269. package/node_modules/mammoth/lib/html/index.js +41 -0
  270. package/node_modules/mammoth/lib/html/simplify.js +88 -0
  271. package/node_modules/mammoth/lib/images.js +31 -0
  272. package/node_modules/mammoth/lib/index.d.ts +86 -0
  273. package/node_modules/mammoth/lib/index.js +111 -0
  274. package/node_modules/mammoth/lib/options-reader.js +107 -0
  275. package/node_modules/mammoth/lib/promises.js +42 -0
  276. package/node_modules/mammoth/lib/raw-text.js +14 -0
  277. package/node_modules/mammoth/lib/results.js +72 -0
  278. package/node_modules/mammoth/lib/style-reader.js +365 -0
  279. package/node_modules/mammoth/lib/styles/document-matchers.js +100 -0
  280. package/node_modules/mammoth/lib/styles/html-paths.js +75 -0
  281. package/node_modules/mammoth/lib/styles/parser/tokeniser.js +30 -0
  282. package/node_modules/mammoth/lib/transforms.js +62 -0
  283. package/node_modules/mammoth/lib/underline.js +11 -0
  284. package/node_modules/mammoth/lib/unzip.js +20 -0
  285. package/node_modules/mammoth/lib/writers/html-writer.js +159 -0
  286. package/node_modules/mammoth/lib/writers/index.js +14 -0
  287. package/node_modules/mammoth/lib/writers/markdown-writer.js +163 -0
  288. package/node_modules/mammoth/lib/xml/index.js +8 -0
  289. package/node_modules/mammoth/lib/xml/nodes.js +70 -0
  290. package/node_modules/mammoth/lib/xml/reader.js +69 -0
  291. package/node_modules/mammoth/lib/xml/writer.js +61 -0
  292. package/node_modules/mammoth/lib/xml/xmldom.js +23 -0
  293. package/node_modules/mammoth/lib/zipfile.js +72 -0
  294. package/node_modules/mammoth/package.json +39 -0
  295. package/node_modules/mammoth/upstream-package.json +64 -0
  296. package/node_modules/option/.npmignore +1 -0
  297. package/node_modules/option/LICENSE +22 -0
  298. package/node_modules/option/README.md +101 -0
  299. package/node_modules/option/index.js +88 -0
  300. package/node_modules/option/package.json +23 -0
  301. package/node_modules/option/test/options.test.js +174 -0
  302. package/node_modules/pako/CHANGELOG.md +164 -0
  303. package/node_modules/pako/LICENSE +21 -0
  304. package/node_modules/pako/README.md +191 -0
  305. package/node_modules/pako/dist/pako.js +6818 -0
  306. package/node_modules/pako/dist/pako.min.js +1 -0
  307. package/node_modules/pako/dist/pako_deflate.js +3997 -0
  308. package/node_modules/pako/dist/pako_deflate.min.js +1 -0
  309. package/node_modules/pako/dist/pako_inflate.js +3300 -0
  310. package/node_modules/pako/dist/pako_inflate.min.js +1 -0
  311. package/node_modules/pako/index.js +14 -0
  312. package/node_modules/pako/lib/deflate.js +400 -0
  313. package/node_modules/pako/lib/inflate.js +423 -0
  314. package/node_modules/pako/lib/utils/common.js +105 -0
  315. package/node_modules/pako/lib/utils/strings.js +187 -0
  316. package/node_modules/pako/lib/zlib/README +59 -0
  317. package/node_modules/pako/lib/zlib/adler32.js +51 -0
  318. package/node_modules/pako/lib/zlib/constants.js +68 -0
  319. package/node_modules/pako/lib/zlib/crc32.js +59 -0
  320. package/node_modules/pako/lib/zlib/deflate.js +1874 -0
  321. package/node_modules/pako/lib/zlib/gzheader.js +58 -0
  322. package/node_modules/pako/lib/zlib/inffast.js +345 -0
  323. package/node_modules/pako/lib/zlib/inflate.js +1556 -0
  324. package/node_modules/pako/lib/zlib/inftrees.js +343 -0
  325. package/node_modules/pako/lib/zlib/messages.js +32 -0
  326. package/node_modules/pako/lib/zlib/trees.js +1222 -0
  327. package/node_modules/pako/lib/zlib/zstream.js +47 -0
  328. package/node_modules/pako/package.json +44 -0
  329. package/node_modules/path-is-absolute/index.js +20 -0
  330. package/node_modules/path-is-absolute/license +21 -0
  331. package/node_modules/path-is-absolute/package.json +43 -0
  332. package/node_modules/path-is-absolute/readme.md +59 -0
  333. package/node_modules/process-nextick-args/index.js +45 -0
  334. package/node_modules/process-nextick-args/license.md +19 -0
  335. package/node_modules/process-nextick-args/package.json +25 -0
  336. package/node_modules/process-nextick-args/readme.md +18 -0
  337. package/node_modules/readable-stream/.travis.yml +34 -0
  338. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  339. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  340. package/node_modules/readable-stream/LICENSE +47 -0
  341. package/node_modules/readable-stream/README.md +58 -0
  342. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  343. package/node_modules/readable-stream/duplex-browser.js +1 -0
  344. package/node_modules/readable-stream/duplex.js +1 -0
  345. package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  346. package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  347. package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  348. package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  349. package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
  350. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
  351. package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
  352. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  353. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  354. package/node_modules/readable-stream/package.json +52 -0
  355. package/node_modules/readable-stream/passthrough.js +1 -0
  356. package/node_modules/readable-stream/readable-browser.js +7 -0
  357. package/node_modules/readable-stream/readable.js +19 -0
  358. package/node_modules/readable-stream/transform.js +1 -0
  359. package/node_modules/readable-stream/writable-browser.js +1 -0
  360. package/node_modules/readable-stream/writable.js +8 -0
  361. package/node_modules/safe-buffer/LICENSE +21 -0
  362. package/node_modules/safe-buffer/README.md +584 -0
  363. package/node_modules/safe-buffer/index.d.ts +187 -0
  364. package/node_modules/safe-buffer/index.js +62 -0
  365. package/node_modules/safe-buffer/package.json +37 -0
  366. package/node_modules/setimmediate/LICENSE.txt +20 -0
  367. package/node_modules/setimmediate/package.json +30 -0
  368. package/node_modules/setimmediate/setImmediate.js +186 -0
  369. package/node_modules/string_decoder/.travis.yml +50 -0
  370. package/node_modules/string_decoder/LICENSE +48 -0
  371. package/node_modules/string_decoder/README.md +47 -0
  372. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  373. package/node_modules/string_decoder/package.json +31 -0
  374. package/node_modules/underscore/LICENSE +22 -0
  375. package/node_modules/underscore/README.md +34 -0
  376. package/node_modules/underscore/amd/_baseCreate.js +21 -0
  377. package/node_modules/underscore/amd/_baseIteratee.js +15 -0
  378. package/node_modules/underscore/amd/_cb.js +12 -0
  379. package/node_modules/underscore/amd/_chainResult.js +10 -0
  380. package/node_modules/underscore/amd/_collectNonEnumProps.js +42 -0
  381. package/node_modules/underscore/amd/_createAssigner.js +24 -0
  382. package/node_modules/underscore/amd/_createEscaper.js +21 -0
  383. package/node_modules/underscore/amd/_createIndexFinder.js +30 -0
  384. package/node_modules/underscore/amd/_createPredicateIndexFinder.js +18 -0
  385. package/node_modules/underscore/amd/_createReduce.js +30 -0
  386. package/node_modules/underscore/amd/_createSizePropertyCheck.js +13 -0
  387. package/node_modules/underscore/amd/_deepGet.js +15 -0
  388. package/node_modules/underscore/amd/_escapeMap.js +15 -0
  389. package/node_modules/underscore/amd/_executeBound.js +16 -0
  390. package/node_modules/underscore/amd/_flatten.js +32 -0
  391. package/node_modules/underscore/amd/_getByteLength.js +8 -0
  392. package/node_modules/underscore/amd/_getLength.js +8 -0
  393. package/node_modules/underscore/amd/_group.js +18 -0
  394. package/node_modules/underscore/amd/_has.js +10 -0
  395. package/node_modules/underscore/amd/_hasObjectTag.js +7 -0
  396. package/node_modules/underscore/amd/_isArrayLike.js +11 -0
  397. package/node_modules/underscore/amd/_isBufferLike.js +9 -0
  398. package/node_modules/underscore/amd/_keyInObj.js +11 -0
  399. package/node_modules/underscore/amd/_methodFingerprint.js +44 -0
  400. package/node_modules/underscore/amd/_optimizeCb.js +27 -0
  401. package/node_modules/underscore/amd/_setup.js +70 -0
  402. package/node_modules/underscore/amd/_shallowProperty.js +12 -0
  403. package/node_modules/underscore/amd/_stringTagBug.js +19 -0
  404. package/node_modules/underscore/amd/_tagTester.js +13 -0
  405. package/node_modules/underscore/amd/_toBufferView.js +15 -0
  406. package/node_modules/underscore/amd/_toPath.js +11 -0
  407. package/node_modules/underscore/amd/_unescapeMap.js +8 -0
  408. package/node_modules/underscore/amd/after.js +14 -0
  409. package/node_modules/underscore/amd/allKeys.js +15 -0
  410. package/node_modules/underscore/amd/before.js +18 -0
  411. package/node_modules/underscore/amd/bind.js +15 -0
  412. package/node_modules/underscore/amd/bindAll.js +19 -0
  413. package/node_modules/underscore/amd/chain.js +12 -0
  414. package/node_modules/underscore/amd/chunk.js +17 -0
  415. package/node_modules/underscore/amd/clone.js +11 -0
  416. package/node_modules/underscore/amd/compact.js +10 -0
  417. package/node_modules/underscore/amd/compose.js +18 -0
  418. package/node_modules/underscore/amd/constant.js +12 -0
  419. package/node_modules/underscore/amd/contains.js +12 -0
  420. package/node_modules/underscore/amd/countBy.js +12 -0
  421. package/node_modules/underscore/amd/create.js +14 -0
  422. package/node_modules/underscore/amd/debounce.js +43 -0
  423. package/node_modules/underscore/amd/defaults.js +8 -0
  424. package/node_modules/underscore/amd/defer.js +9 -0
  425. package/node_modules/underscore/amd/delay.js +13 -0
  426. package/node_modules/underscore/amd/difference.js +14 -0
  427. package/node_modules/underscore/amd/each.js +25 -0
  428. package/node_modules/underscore/amd/escape.js +8 -0
  429. package/node_modules/underscore/amd/every.js +17 -0
  430. package/node_modules/underscore/amd/extend.js +8 -0
  431. package/node_modules/underscore/amd/extendOwn.js +10 -0
  432. package/node_modules/underscore/amd/filter.js +15 -0
  433. package/node_modules/underscore/amd/find.js +12 -0
  434. package/node_modules/underscore/amd/findIndex.js +8 -0
  435. package/node_modules/underscore/amd/findKey.js +15 -0
  436. package/node_modules/underscore/amd/findLastIndex.js +8 -0
  437. package/node_modules/underscore/amd/findWhere.js +11 -0
  438. package/node_modules/underscore/amd/first.js +13 -0
  439. package/node_modules/underscore/amd/flatten.js +11 -0
  440. package/node_modules/underscore/amd/functions.js +14 -0
  441. package/node_modules/underscore/amd/get.js +14 -0
  442. package/node_modules/underscore/amd/groupBy.js +11 -0
  443. package/node_modules/underscore/amd/has.js +19 -0
  444. package/node_modules/underscore/amd/identity.js +10 -0
  445. package/node_modules/underscore/amd/index-default.js +12 -0
  446. package/node_modules/underscore/amd/index.js +154 -0
  447. package/node_modules/underscore/amd/indexBy.js +11 -0
  448. package/node_modules/underscore/amd/indexOf.js +11 -0
  449. package/node_modules/underscore/amd/initial.js +12 -0
  450. package/node_modules/underscore/amd/intersection.js +22 -0
  451. package/node_modules/underscore/amd/invert.js +15 -0
  452. package/node_modules/underscore/amd/invoke.js +28 -0
  453. package/node_modules/underscore/amd/isArguments.js +19 -0
  454. package/node_modules/underscore/amd/isArray.js +9 -0
  455. package/node_modules/underscore/amd/isArrayBuffer.js +7 -0
  456. package/node_modules/underscore/amd/isBoolean.js +10 -0
  457. package/node_modules/underscore/amd/isDataView.js +17 -0
  458. package/node_modules/underscore/amd/isDate.js +7 -0
  459. package/node_modules/underscore/amd/isElement.js +10 -0
  460. package/node_modules/underscore/amd/isEmpty.js +18 -0
  461. package/node_modules/underscore/amd/isEqual.js +133 -0
  462. package/node_modules/underscore/amd/isError.js +7 -0
  463. package/node_modules/underscore/amd/isFinite.js +10 -0
  464. package/node_modules/underscore/amd/isFunction.js +18 -0
  465. package/node_modules/underscore/amd/isMap.js +7 -0
  466. package/node_modules/underscore/amd/isMatch.js +17 -0
  467. package/node_modules/underscore/amd/isNaN.js +10 -0
  468. package/node_modules/underscore/amd/isNull.js +10 -0
  469. package/node_modules/underscore/amd/isNumber.js +7 -0
  470. package/node_modules/underscore/amd/isObject.js +11 -0
  471. package/node_modules/underscore/amd/isRegExp.js +7 -0
  472. package/node_modules/underscore/amd/isSet.js +7 -0
  473. package/node_modules/underscore/amd/isString.js +7 -0
  474. package/node_modules/underscore/amd/isSymbol.js +7 -0
  475. package/node_modules/underscore/amd/isTypedArray.js +16 -0
  476. package/node_modules/underscore/amd/isUndefined.js +10 -0
  477. package/node_modules/underscore/amd/isWeakMap.js +7 -0
  478. package/node_modules/underscore/amd/isWeakSet.js +7 -0
  479. package/node_modules/underscore/amd/iteratee.js +13 -0
  480. package/node_modules/underscore/amd/keys.js +17 -0
  481. package/node_modules/underscore/amd/last.js +13 -0
  482. package/node_modules/underscore/amd/lastIndexOf.js +9 -0
  483. package/node_modules/underscore/amd/map.js +18 -0
  484. package/node_modules/underscore/amd/mapObject.js +19 -0
  485. package/node_modules/underscore/amd/matcher.js +14 -0
  486. package/node_modules/underscore/amd/max.js +30 -0
  487. package/node_modules/underscore/amd/memoize.js +17 -0
  488. package/node_modules/underscore/amd/min.js +30 -0
  489. package/node_modules/underscore/amd/mixin.js +18 -0
  490. package/node_modules/underscore/amd/negate.js +12 -0
  491. package/node_modules/underscore/amd/noop.js +8 -0
  492. package/node_modules/underscore/amd/now.js +10 -0
  493. package/node_modules/underscore/amd/object.js +20 -0
  494. package/node_modules/underscore/amd/omit.js +20 -0
  495. package/node_modules/underscore/amd/once.js +9 -0
  496. package/node_modules/underscore/amd/pairs.js +17 -0
  497. package/node_modules/underscore/amd/partial.js +25 -0
  498. package/node_modules/underscore/amd/partition.js +11 -0
  499. package/node_modules/underscore/amd/pick.js +25 -0
  500. package/node_modules/underscore/amd/pipe.js +13 -0
  501. package/node_modules/underscore/amd/pluck.js +10 -0
  502. package/node_modules/underscore/amd/property.js +14 -0
  503. package/node_modules/underscore/amd/propertyOf.js +13 -0
  504. package/node_modules/underscore/amd/random.js +14 -0
  505. package/node_modules/underscore/amd/range.js +27 -0
  506. package/node_modules/underscore/amd/reduce.js +9 -0
  507. package/node_modules/underscore/amd/reduceRight.js +8 -0
  508. package/node_modules/underscore/amd/reject.js +10 -0
  509. package/node_modules/underscore/amd/rest.js +12 -0
  510. package/node_modules/underscore/amd/restArguments.js +33 -0
  511. package/node_modules/underscore/amd/result.js +25 -0
  512. package/node_modules/underscore/amd/sample.js +27 -0
  513. package/node_modules/underscore/amd/shuffle.js +10 -0
  514. package/node_modules/underscore/amd/size.js +11 -0
  515. package/node_modules/underscore/amd/some.js +17 -0
  516. package/node_modules/underscore/amd/sortBy.js +26 -0
  517. package/node_modules/underscore/amd/sortedIndex.js +18 -0
  518. package/node_modules/underscore/amd/tap.js +13 -0
  519. package/node_modules/underscore/amd/template.js +103 -0
  520. package/node_modules/underscore/amd/templateSettings.js +13 -0
  521. package/node_modules/underscore/amd/throttle.js +51 -0
  522. package/node_modules/underscore/amd/times.js +13 -0
  523. package/node_modules/underscore/amd/toArray.js +18 -0
  524. package/node_modules/underscore/amd/toPath.js +12 -0
  525. package/node_modules/underscore/amd/underscore-array-methods.js +30 -0
  526. package/node_modules/underscore/amd/underscore.js +29 -0
  527. package/node_modules/underscore/amd/unescape.js +8 -0
  528. package/node_modules/underscore/amd/union.js +11 -0
  529. package/node_modules/underscore/amd/uniq.js +37 -0
  530. package/node_modules/underscore/amd/uniqueId.js +13 -0
  531. package/node_modules/underscore/amd/unzip.js +17 -0
  532. package/node_modules/underscore/amd/values.js +16 -0
  533. package/node_modules/underscore/amd/where.js +11 -0
  534. package/node_modules/underscore/amd/without.js +10 -0
  535. package/node_modules/underscore/amd/wrap.js +12 -0
  536. package/node_modules/underscore/amd/zip.js +9 -0
  537. package/node_modules/underscore/cjs/_baseCreate.js +20 -0
  538. package/node_modules/underscore/cjs/_baseIteratee.js +19 -0
  539. package/node_modules/underscore/cjs/_cb.js +12 -0
  540. package/node_modules/underscore/cjs/_chainResult.js +8 -0
  541. package/node_modules/underscore/cjs/_collectNonEnumProps.js +42 -0
  542. package/node_modules/underscore/cjs/_createAssigner.js +20 -0
  543. package/node_modules/underscore/cjs/_createEscaper.js +19 -0
  544. package/node_modules/underscore/cjs/_createIndexFinder.js +30 -0
  545. package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +17 -0
  546. package/node_modules/underscore/cjs/_createReduce.js +30 -0
  547. package/node_modules/underscore/cjs/_createSizePropertyCheck.js +11 -0
  548. package/node_modules/underscore/cjs/_deepGet.js +11 -0
  549. package/node_modules/underscore/cjs/_escapeMap.js +11 -0
  550. package/node_modules/underscore/cjs/_executeBound.js +15 -0
  551. package/node_modules/underscore/cjs/_flatten.js +33 -0
  552. package/node_modules/underscore/cjs/_getByteLength.js +6 -0
  553. package/node_modules/underscore/cjs/_getLength.js +6 -0
  554. package/node_modules/underscore/cjs/_group.js +17 -0
  555. package/node_modules/underscore/cjs/_has.js +8 -0
  556. package/node_modules/underscore/cjs/_hasObjectTag.js +5 -0
  557. package/node_modules/underscore/cjs/_isArrayLike.js +10 -0
  558. package/node_modules/underscore/cjs/_isBufferLike.js +8 -0
  559. package/node_modules/underscore/cjs/_keyInObj.js +7 -0
  560. package/node_modules/underscore/cjs/_methodFingerprint.js +44 -0
  561. package/node_modules/underscore/cjs/_optimizeCb.js +23 -0
  562. package/node_modules/underscore/cjs/_setup.js +66 -0
  563. package/node_modules/underscore/cjs/_shallowProperty.js +8 -0
  564. package/node_modules/underscore/cjs/_stringTagBug.js +18 -0
  565. package/node_modules/underscore/cjs/_tagTester.js +11 -0
  566. package/node_modules/underscore/cjs/_toBufferView.js +13 -0
  567. package/node_modules/underscore/cjs/_toPath.js +10 -0
  568. package/node_modules/underscore/cjs/_unescapeMap.js +7 -0
  569. package/node_modules/underscore/cjs/after.js +10 -0
  570. package/node_modules/underscore/cjs/allKeys.js +15 -0
  571. package/node_modules/underscore/cjs/before.js +14 -0
  572. package/node_modules/underscore/cjs/bind.js +15 -0
  573. package/node_modules/underscore/cjs/bindAll.js +19 -0
  574. package/node_modules/underscore/cjs/chain.js +10 -0
  575. package/node_modules/underscore/cjs/chunk.js +15 -0
  576. package/node_modules/underscore/cjs/clone.js +11 -0
  577. package/node_modules/underscore/cjs/compact.js +8 -0
  578. package/node_modules/underscore/cjs/compose.js +14 -0
  579. package/node_modules/underscore/cjs/constant.js +8 -0
  580. package/node_modules/underscore/cjs/contains.js +12 -0
  581. package/node_modules/underscore/cjs/countBy.js +11 -0
  582. package/node_modules/underscore/cjs/create.js +13 -0
  583. package/node_modules/underscore/cjs/debounce.js +42 -0
  584. package/node_modules/underscore/cjs/defaults.js +7 -0
  585. package/node_modules/underscore/cjs/defer.js +9 -0
  586. package/node_modules/underscore/cjs/delay.js +11 -0
  587. package/node_modules/underscore/cjs/difference.js +15 -0
  588. package/node_modules/underscore/cjs/each.js +25 -0
  589. package/node_modules/underscore/cjs/escape.js +7 -0
  590. package/node_modules/underscore/cjs/every.js +17 -0
  591. package/node_modules/underscore/cjs/extend.js +7 -0
  592. package/node_modules/underscore/cjs/extendOwn.js +9 -0
  593. package/node_modules/underscore/cjs/filter.js +14 -0
  594. package/node_modules/underscore/cjs/find.js +12 -0
  595. package/node_modules/underscore/cjs/findIndex.js +6 -0
  596. package/node_modules/underscore/cjs/findKey.js +14 -0
  597. package/node_modules/underscore/cjs/findLastIndex.js +6 -0
  598. package/node_modules/underscore/cjs/findWhere.js +10 -0
  599. package/node_modules/underscore/cjs/first.js +11 -0
  600. package/node_modules/underscore/cjs/flatten.js +9 -0
  601. package/node_modules/underscore/cjs/functions.js +12 -0
  602. package/node_modules/underscore/cjs/get.js +14 -0
  603. package/node_modules/underscore/cjs/groupBy.js +10 -0
  604. package/node_modules/underscore/cjs/has.js +18 -0
  605. package/node_modules/underscore/cjs/identity.js +6 -0
  606. package/node_modules/underscore/cjs/index-default.js +11 -0
  607. package/node_modules/underscore/cjs/index.js +278 -0
  608. package/node_modules/underscore/cjs/indexBy.js +9 -0
  609. package/node_modules/underscore/cjs/indexOf.js +11 -0
  610. package/node_modules/underscore/cjs/initial.js +10 -0
  611. package/node_modules/underscore/cjs/intersection.js +21 -0
  612. package/node_modules/underscore/cjs/invert.js +13 -0
  613. package/node_modules/underscore/cjs/invoke.js +30 -0
  614. package/node_modules/underscore/cjs/isArguments.js +18 -0
  615. package/node_modules/underscore/cjs/isArray.js +8 -0
  616. package/node_modules/underscore/cjs/isArrayBuffer.js +5 -0
  617. package/node_modules/underscore/cjs/isBoolean.js +8 -0
  618. package/node_modules/underscore/cjs/isDataView.js +18 -0
  619. package/node_modules/underscore/cjs/isDate.js +5 -0
  620. package/node_modules/underscore/cjs/isElement.js +6 -0
  621. package/node_modules/underscore/cjs/isEmpty.js +20 -0
  622. package/node_modules/underscore/cjs/isEqual.js +140 -0
  623. package/node_modules/underscore/cjs/isError.js +5 -0
  624. package/node_modules/underscore/cjs/isFinite.js +9 -0
  625. package/node_modules/underscore/cjs/isFunction.js +17 -0
  626. package/node_modules/underscore/cjs/isMap.js +7 -0
  627. package/node_modules/underscore/cjs/isMatch.js +15 -0
  628. package/node_modules/underscore/cjs/isNaN.js +9 -0
  629. package/node_modules/underscore/cjs/isNull.js +6 -0
  630. package/node_modules/underscore/cjs/isNumber.js +5 -0
  631. package/node_modules/underscore/cjs/isObject.js +7 -0
  632. package/node_modules/underscore/cjs/isRegExp.js +5 -0
  633. package/node_modules/underscore/cjs/isSet.js +7 -0
  634. package/node_modules/underscore/cjs/isString.js +5 -0
  635. package/node_modules/underscore/cjs/isSymbol.js +5 -0
  636. package/node_modules/underscore/cjs/isTypedArray.js +17 -0
  637. package/node_modules/underscore/cjs/isUndefined.js +6 -0
  638. package/node_modules/underscore/cjs/isWeakMap.js +7 -0
  639. package/node_modules/underscore/cjs/isWeakSet.js +5 -0
  640. package/node_modules/underscore/cjs/iteratee.js +12 -0
  641. package/node_modules/underscore/cjs/keys.js +18 -0
  642. package/node_modules/underscore/cjs/last.js +11 -0
  643. package/node_modules/underscore/cjs/lastIndexOf.js +8 -0
  644. package/node_modules/underscore/cjs/map.js +18 -0
  645. package/node_modules/underscore/cjs/mapObject.js +18 -0
  646. package/node_modules/underscore/cjs/matcher.js +13 -0
  647. package/node_modules/underscore/cjs/max.js +31 -0
  648. package/node_modules/underscore/cjs/memoize.js +15 -0
  649. package/node_modules/underscore/cjs/min.js +31 -0
  650. package/node_modules/underscore/cjs/mixin.js +20 -0
  651. package/node_modules/underscore/cjs/negate.js +8 -0
  652. package/node_modules/underscore/cjs/noop.js +4 -0
  653. package/node_modules/underscore/cjs/now.js +6 -0
  654. package/node_modules/underscore/cjs/object.js +18 -0
  655. package/node_modules/underscore/cjs/omit.js +24 -0
  656. package/node_modules/underscore/cjs/once.js +8 -0
  657. package/node_modules/underscore/cjs/pairs.js +15 -0
  658. package/node_modules/underscore/cjs/partial.js +25 -0
  659. package/node_modules/underscore/cjs/partition.js +9 -0
  660. package/node_modules/underscore/cjs/pick.js +28 -0
  661. package/node_modules/underscore/cjs/pipe.js +12 -0
  662. package/node_modules/underscore/cjs/pluck.js +9 -0
  663. package/node_modules/underscore/cjs/property.js +13 -0
  664. package/node_modules/underscore/cjs/propertyOf.js +12 -0
  665. package/node_modules/underscore/cjs/random.js +10 -0
  666. package/node_modules/underscore/cjs/range.js +23 -0
  667. package/node_modules/underscore/cjs/reduce.js +7 -0
  668. package/node_modules/underscore/cjs/reduceRight.js +6 -0
  669. package/node_modules/underscore/cjs/reject.js +10 -0
  670. package/node_modules/underscore/cjs/rest.js +10 -0
  671. package/node_modules/underscore/cjs/restArguments.js +29 -0
  672. package/node_modules/underscore/cjs/result.js +24 -0
  673. package/node_modules/underscore/cjs/sample.js +29 -0
  674. package/node_modules/underscore/cjs/shuffle.js +8 -0
  675. package/node_modules/underscore/cjs/size.js +10 -0
  676. package/node_modules/underscore/cjs/some.js +17 -0
  677. package/node_modules/underscore/cjs/sortBy.js +26 -0
  678. package/node_modules/underscore/cjs/sortedIndex.js +17 -0
  679. package/node_modules/underscore/cjs/tap.js +9 -0
  680. package/node_modules/underscore/cjs/template.js +103 -0
  681. package/node_modules/underscore/cjs/templateSettings.js +11 -0
  682. package/node_modules/underscore/cjs/throttle.js +49 -0
  683. package/node_modules/underscore/cjs/times.js +11 -0
  684. package/node_modules/underscore/cjs/toArray.js +22 -0
  685. package/node_modules/underscore/cjs/toPath.js +11 -0
  686. package/node_modules/underscore/cjs/underscore-array-methods.js +31 -0
  687. package/node_modules/underscore/cjs/underscore.js +27 -0
  688. package/node_modules/underscore/cjs/unescape.js +7 -0
  689. package/node_modules/underscore/cjs/union.js +11 -0
  690. package/node_modules/underscore/cjs/uniq.js +38 -0
  691. package/node_modules/underscore/cjs/uniqueId.js +9 -0
  692. package/node_modules/underscore/cjs/unzip.js +17 -0
  693. package/node_modules/underscore/cjs/values.js +14 -0
  694. package/node_modules/underscore/cjs/where.js +10 -0
  695. package/node_modules/underscore/cjs/without.js +9 -0
  696. package/node_modules/underscore/cjs/wrap.js +10 -0
  697. package/node_modules/underscore/cjs/zip.js +8 -0
  698. package/node_modules/underscore/modules/.eslintrc +21 -0
  699. package/node_modules/underscore/modules/_baseCreate.js +18 -0
  700. package/node_modules/underscore/modules/_baseIteratee.js +17 -0
  701. package/node_modules/underscore/modules/_cb.js +10 -0
  702. package/node_modules/underscore/modules/_chainResult.js +6 -0
  703. package/node_modules/underscore/modules/_collectNonEnumProps.js +40 -0
  704. package/node_modules/underscore/modules/_createAssigner.js +18 -0
  705. package/node_modules/underscore/modules/_createEscaper.js +17 -0
  706. package/node_modules/underscore/modules/_createIndexFinder.js +28 -0
  707. package/node_modules/underscore/modules/_createPredicateIndexFinder.js +15 -0
  708. package/node_modules/underscore/modules/_createReduce.js +28 -0
  709. package/node_modules/underscore/modules/_createSizePropertyCheck.js +9 -0
  710. package/node_modules/underscore/modules/_deepGet.js +9 -0
  711. package/node_modules/underscore/modules/_escapeMap.js +9 -0
  712. package/node_modules/underscore/modules/_executeBound.js +13 -0
  713. package/node_modules/underscore/modules/_flatten.js +33 -0
  714. package/node_modules/underscore/modules/_getByteLength.js +4 -0
  715. package/node_modules/underscore/modules/_getLength.js +4 -0
  716. package/node_modules/underscore/modules/_group.js +15 -0
  717. package/node_modules/underscore/modules/_has.js +6 -0
  718. package/node_modules/underscore/modules/_hasObjectTag.js +3 -0
  719. package/node_modules/underscore/modules/_isArrayLike.js +8 -0
  720. package/node_modules/underscore/modules/_isBufferLike.js +6 -0
  721. package/node_modules/underscore/modules/_keyInObj.js +5 -0
  722. package/node_modules/underscore/modules/_methodFingerprint.js +37 -0
  723. package/node_modules/underscore/modules/_optimizeCb.js +21 -0
  724. package/node_modules/underscore/modules/_setup.js +43 -0
  725. package/node_modules/underscore/modules/_shallowProperty.js +6 -0
  726. package/node_modules/underscore/modules/_stringTagBug.js +13 -0
  727. package/node_modules/underscore/modules/_tagTester.js +9 -0
  728. package/node_modules/underscore/modules/_toBufferView.js +11 -0
  729. package/node_modules/underscore/modules/_toPath.js +8 -0
  730. package/node_modules/underscore/modules/_unescapeMap.js +5 -0
  731. package/node_modules/underscore/modules/after.js +8 -0
  732. package/node_modules/underscore/modules/allKeys.js +13 -0
  733. package/node_modules/underscore/modules/before.js +12 -0
  734. package/node_modules/underscore/modules/bind.js +13 -0
  735. package/node_modules/underscore/modules/bindAll.js +17 -0
  736. package/node_modules/underscore/modules/chain.js +8 -0
  737. package/node_modules/underscore/modules/chunk.js +13 -0
  738. package/node_modules/underscore/modules/clone.js +9 -0
  739. package/node_modules/underscore/modules/compact.js +6 -0
  740. package/node_modules/underscore/modules/compose.js +12 -0
  741. package/node_modules/underscore/modules/constant.js +6 -0
  742. package/node_modules/underscore/modules/contains.js +10 -0
  743. package/node_modules/underscore/modules/countBy.js +9 -0
  744. package/node_modules/underscore/modules/create.js +11 -0
  745. package/node_modules/underscore/modules/debounce.js +40 -0
  746. package/node_modules/underscore/modules/defaults.js +5 -0
  747. package/node_modules/underscore/modules/defer.js +7 -0
  748. package/node_modules/underscore/modules/delay.js +9 -0
  749. package/node_modules/underscore/modules/difference.js +13 -0
  750. package/node_modules/underscore/modules/each.js +23 -0
  751. package/node_modules/underscore/modules/escape.js +5 -0
  752. package/node_modules/underscore/modules/every.js +15 -0
  753. package/node_modules/underscore/modules/extend.js +5 -0
  754. package/node_modules/underscore/modules/extendOwn.js +7 -0
  755. package/node_modules/underscore/modules/filter.js +12 -0
  756. package/node_modules/underscore/modules/find.js +10 -0
  757. package/node_modules/underscore/modules/findIndex.js +4 -0
  758. package/node_modules/underscore/modules/findKey.js +12 -0
  759. package/node_modules/underscore/modules/findLastIndex.js +4 -0
  760. package/node_modules/underscore/modules/findWhere.js +8 -0
  761. package/node_modules/underscore/modules/first.js +9 -0
  762. package/node_modules/underscore/modules/flatten.js +7 -0
  763. package/node_modules/underscore/modules/functions.js +10 -0
  764. package/node_modules/underscore/modules/get.js +12 -0
  765. package/node_modules/underscore/modules/groupBy.js +8 -0
  766. package/node_modules/underscore/modules/has.js +16 -0
  767. package/node_modules/underscore/modules/identity.js +4 -0
  768. package/node_modules/underscore/modules/index-all.js +18 -0
  769. package/node_modules/underscore/modules/index-default.js +27 -0
  770. package/node_modules/underscore/modules/index.js +200 -0
  771. package/node_modules/underscore/modules/indexBy.js +7 -0
  772. package/node_modules/underscore/modules/indexOf.js +9 -0
  773. package/node_modules/underscore/modules/initial.js +8 -0
  774. package/node_modules/underscore/modules/intersection.js +19 -0
  775. package/node_modules/underscore/modules/invert.js +11 -0
  776. package/node_modules/underscore/modules/invoke.js +28 -0
  777. package/node_modules/underscore/modules/isArguments.js +16 -0
  778. package/node_modules/underscore/modules/isArray.js +6 -0
  779. package/node_modules/underscore/modules/isArrayBuffer.js +3 -0
  780. package/node_modules/underscore/modules/isBoolean.js +6 -0
  781. package/node_modules/underscore/modules/isDataView.js +16 -0
  782. package/node_modules/underscore/modules/isDate.js +3 -0
  783. package/node_modules/underscore/modules/isElement.js +4 -0
  784. package/node_modules/underscore/modules/isEmpty.js +18 -0
  785. package/node_modules/underscore/modules/isEqual.js +153 -0
  786. package/node_modules/underscore/modules/isError.js +3 -0
  787. package/node_modules/underscore/modules/isFinite.js +7 -0
  788. package/node_modules/underscore/modules/isFunction.js +15 -0
  789. package/node_modules/underscore/modules/isMap.js +5 -0
  790. package/node_modules/underscore/modules/isMatch.js +13 -0
  791. package/node_modules/underscore/modules/isNaN.js +7 -0
  792. package/node_modules/underscore/modules/isNull.js +4 -0
  793. package/node_modules/underscore/modules/isNumber.js +3 -0
  794. package/node_modules/underscore/modules/isObject.js +5 -0
  795. package/node_modules/underscore/modules/isRegExp.js +3 -0
  796. package/node_modules/underscore/modules/isSet.js +5 -0
  797. package/node_modules/underscore/modules/isString.js +3 -0
  798. package/node_modules/underscore/modules/isSymbol.js +3 -0
  799. package/node_modules/underscore/modules/isTypedArray.js +15 -0
  800. package/node_modules/underscore/modules/isUndefined.js +4 -0
  801. package/node_modules/underscore/modules/isWeakMap.js +5 -0
  802. package/node_modules/underscore/modules/isWeakSet.js +3 -0
  803. package/node_modules/underscore/modules/iteratee.js +10 -0
  804. package/node_modules/underscore/modules/keys.js +16 -0
  805. package/node_modules/underscore/modules/last.js +9 -0
  806. package/node_modules/underscore/modules/lastIndexOf.js +6 -0
  807. package/node_modules/underscore/modules/map.js +16 -0
  808. package/node_modules/underscore/modules/mapObject.js +16 -0
  809. package/node_modules/underscore/modules/matcher.js +11 -0
  810. package/node_modules/underscore/modules/max.js +29 -0
  811. package/node_modules/underscore/modules/memoize.js +13 -0
  812. package/node_modules/underscore/modules/min.js +29 -0
  813. package/node_modules/underscore/modules/mixin.js +18 -0
  814. package/node_modules/underscore/modules/negate.js +6 -0
  815. package/node_modules/underscore/modules/noop.js +2 -0
  816. package/node_modules/underscore/modules/now.js +4 -0
  817. package/node_modules/underscore/modules/object.js +16 -0
  818. package/node_modules/underscore/modules/omit.js +22 -0
  819. package/node_modules/underscore/modules/once.js +6 -0
  820. package/node_modules/underscore/modules/package.json +1 -0
  821. package/node_modules/underscore/modules/pairs.js +13 -0
  822. package/node_modules/underscore/modules/partial.js +24 -0
  823. package/node_modules/underscore/modules/partition.js +7 -0
  824. package/node_modules/underscore/modules/pick.js +26 -0
  825. package/node_modules/underscore/modules/pluck.js +7 -0
  826. package/node_modules/underscore/modules/property.js +11 -0
  827. package/node_modules/underscore/modules/propertyOf.js +10 -0
  828. package/node_modules/underscore/modules/random.js +8 -0
  829. package/node_modules/underscore/modules/range.js +21 -0
  830. package/node_modules/underscore/modules/reduce.js +5 -0
  831. package/node_modules/underscore/modules/reduceRight.js +4 -0
  832. package/node_modules/underscore/modules/reject.js +8 -0
  833. package/node_modules/underscore/modules/rest.js +8 -0
  834. package/node_modules/underscore/modules/restArguments.js +27 -0
  835. package/node_modules/underscore/modules/result.js +22 -0
  836. package/node_modules/underscore/modules/sample.js +27 -0
  837. package/node_modules/underscore/modules/shuffle.js +6 -0
  838. package/node_modules/underscore/modules/size.js +8 -0
  839. package/node_modules/underscore/modules/some.js +15 -0
  840. package/node_modules/underscore/modules/sortBy.js +24 -0
  841. package/node_modules/underscore/modules/sortedIndex.js +15 -0
  842. package/node_modules/underscore/modules/tap.js +7 -0
  843. package/node_modules/underscore/modules/template.js +101 -0
  844. package/node_modules/underscore/modules/templateSettings.js +9 -0
  845. package/node_modules/underscore/modules/throttle.js +47 -0
  846. package/node_modules/underscore/modules/times.js +9 -0
  847. package/node_modules/underscore/modules/toArray.js +20 -0
  848. package/node_modules/underscore/modules/toPath.js +9 -0
  849. package/node_modules/underscore/modules/underscore-array-methods.js +31 -0
  850. package/node_modules/underscore/modules/underscore.js +25 -0
  851. package/node_modules/underscore/modules/unescape.js +5 -0
  852. package/node_modules/underscore/modules/union.js +9 -0
  853. package/node_modules/underscore/modules/uniq.js +36 -0
  854. package/node_modules/underscore/modules/uniqueId.js +7 -0
  855. package/node_modules/underscore/modules/unzip.js +15 -0
  856. package/node_modules/underscore/modules/values.js +12 -0
  857. package/node_modules/underscore/modules/where.js +8 -0
  858. package/node_modules/underscore/modules/without.js +7 -0
  859. package/node_modules/underscore/modules/wrap.js +8 -0
  860. package/node_modules/underscore/modules/zip.js +6 -0
  861. package/node_modules/underscore/package.json +124 -0
  862. package/node_modules/underscore/underscore-esm-min.js +5 -0
  863. package/node_modules/underscore/underscore-esm-min.js.map +1 -0
  864. package/node_modules/underscore/underscore-esm.js +2056 -0
  865. package/node_modules/underscore/underscore-esm.js.map +1 -0
  866. package/node_modules/underscore/underscore-min.js +6 -0
  867. package/node_modules/underscore/underscore-min.js.map +1 -0
  868. package/node_modules/underscore/underscore-node-f.cjs +2180 -0
  869. package/node_modules/underscore/underscore-node-f.cjs.map +1 -0
  870. package/node_modules/underscore/underscore-node.cjs +11 -0
  871. package/node_modules/underscore/underscore-node.cjs.map +1 -0
  872. package/node_modules/underscore/underscore-node.mjs +7 -0
  873. package/node_modules/underscore/underscore-node.mjs.map +1 -0
  874. package/node_modules/underscore/underscore-umd-min.js +6 -0
  875. package/node_modules/underscore/underscore-umd-min.js.map +1 -0
  876. package/node_modules/underscore/underscore-umd.js +2064 -0
  877. package/node_modules/underscore/underscore-umd.js.map +1 -0
  878. package/node_modules/underscore/underscore.js +2064 -0
  879. package/node_modules/util-deprecate/History.md +16 -0
  880. package/node_modules/util-deprecate/LICENSE +24 -0
  881. package/node_modules/util-deprecate/README.md +53 -0
  882. package/node_modules/util-deprecate/browser.js +67 -0
  883. package/node_modules/util-deprecate/node.js +6 -0
  884. package/node_modules/util-deprecate/package.json +27 -0
  885. package/node_modules/xmlbuilder/CHANGELOG.md +438 -0
  886. package/node_modules/xmlbuilder/LICENSE +21 -0
  887. package/node_modules/xmlbuilder/README.md +86 -0
  888. package/node_modules/xmlbuilder/appveyor.yml +20 -0
  889. package/node_modules/xmlbuilder/lib/Utility.js +83 -0
  890. package/node_modules/xmlbuilder/lib/XMLAttribute.js +41 -0
  891. package/node_modules/xmlbuilder/lib/XMLCData.js +32 -0
  892. package/node_modules/xmlbuilder/lib/XMLComment.js +32 -0
  893. package/node_modules/xmlbuilder/lib/XMLDTDAttList.js +50 -0
  894. package/node_modules/xmlbuilder/lib/XMLDTDElement.js +35 -0
  895. package/node_modules/xmlbuilder/lib/XMLDTDEntity.js +56 -0
  896. package/node_modules/xmlbuilder/lib/XMLDTDNotation.js +37 -0
  897. package/node_modules/xmlbuilder/lib/XMLDeclaration.js +40 -0
  898. package/node_modules/xmlbuilder/lib/XMLDocType.js +108 -0
  899. package/node_modules/xmlbuilder/lib/XMLDocument.js +49 -0
  900. package/node_modules/xmlbuilder/lib/XMLDocumentCB.js +414 -0
  901. package/node_modules/xmlbuilder/lib/XMLDummy.js +29 -0
  902. package/node_modules/xmlbuilder/lib/XMLElement.js +111 -0
  903. package/node_modules/xmlbuilder/lib/XMLNode.js +467 -0
  904. package/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +35 -0
  905. package/node_modules/xmlbuilder/lib/XMLRaw.js +32 -0
  906. package/node_modules/xmlbuilder/lib/XMLStreamWriter.js +287 -0
  907. package/node_modules/xmlbuilder/lib/XMLStringWriter.js +341 -0
  908. package/node_modules/xmlbuilder/lib/XMLStringifier.js +163 -0
  909. package/node_modules/xmlbuilder/lib/XMLText.js +32 -0
  910. package/node_modules/xmlbuilder/lib/XMLWriterBase.js +90 -0
  911. package/node_modules/xmlbuilder/lib/index.js +53 -0
  912. package/node_modules/xmlbuilder/package.json +37 -0
  913. package/package.json +18 -7
  914. package/schemas/tool-definition.schema.json +13 -0
  915. package/scripts/check-doc-links.mjs +6 -0
  916. package/scripts/check-image-tags.sh +1 -1
  917. package/scripts/check-package-artifact.mjs +19 -0
  918. package/scripts/check-release-consistency.test.mjs +2 -2
  919. package/scripts/dependency-audit.mjs +49 -96
  920. package/scripts/dependency-audit.test.mjs +70 -106
  921. package/scripts/doctor-upgrade-plan.test.ts +205 -0
  922. package/scripts/doctor-upgrade-plan.ts +276 -0
  923. package/scripts/doctor.ts +4 -1
  924. package/scripts/docx-browser-test.mjs +56 -0
  925. package/scripts/docx-compatibility.test.mjs +39 -0
  926. package/scripts/docx-fixtures.mjs +19 -0
  927. package/scripts/e2e-console-approval-details.mjs +134 -0
  928. package/scripts/e2e-console-config-races.mjs +180 -0
  929. package/scripts/e2e-console-kb-audit.mjs +170 -0
  930. package/scripts/e2e-console-operations-audit.mjs +152 -0
  931. package/scripts/e2e-console-runtime-audit.mjs +179 -0
  932. package/scripts/e2e-console-settings-audit.mjs +125 -0
  933. package/scripts/e2e-console-troubleshooting-extra.mjs +267 -0
  934. package/scripts/e2e-console.mjs +476 -7
  935. package/scripts/export-oss.mjs +3 -0
  936. package/scripts/generate-third-party-notices.mjs +6 -2
  937. package/scripts/install.sh +1 -1
  938. package/scripts/notification-console-test.mjs +172 -0
  939. package/scripts/oss-boundary-check.mjs +3 -1
  940. package/scripts/publish-images.sh +1 -1
  941. package/scripts/release-audit.mjs +9 -1
  942. package/scripts/vendor-mammoth.mjs +130 -0
  943. package/scripts/verify-github-repo.mjs +8 -0
  944. package/scripts/verify-oss-export.mjs +3 -0
  945. package/sql/068_notification_outbox.sql +28 -0
  946. package/sql/README.en.md +8 -0
  947. package/sql/README.md +8 -0
  948. package/src/app/agent-client-runtime.test.ts +115 -2
  949. package/src/app/agent-client-runtime.ts +40 -11
  950. package/src/app/agent-knowledge.test.ts +171 -0
  951. package/src/app/agent-knowledge.ts +233 -0
  952. package/src/app/agent-tool-catalog-revision.test.ts +31 -0
  953. package/src/app/agent-tool-invocations.test.ts +7 -2
  954. package/src/app/agent-tool-invocations.ts +67 -7
  955. package/src/app/approval-continuations.mysql.test.ts +1 -1
  956. package/src/app/approval-continuations.test.ts +49 -1
  957. package/src/app/delivery-dlq-replay.mysql.test.ts +2 -2
  958. package/src/app/delivery.ts +115 -1
  959. package/src/app/engine.ts +5 -4
  960. package/src/app/http.test.ts +16 -1
  961. package/src/app/http.ts +3 -3
  962. package/src/app/kernel-boot-recovery.mysql.test.ts +132 -0
  963. package/src/app/kernel-boot-recovery.test.ts +157 -0
  964. package/src/app/kernel-usage-lifecycle.mysql.test.ts +1 -1
  965. package/src/app/kernel.ts +20 -8
  966. package/src/app/notification-outbox.test.ts +321 -0
  967. package/src/app/notification-outbox.ts +123 -0
  968. package/src/app/operational-metrics.test.ts +15 -0
  969. package/src/app/operational-metrics.ts +9 -0
  970. package/src/app/outbound.ts +28 -0
  971. package/src/app/readiness.mysql.test.ts +120 -0
  972. package/src/app/readiness.test.ts +111 -26
  973. package/src/app/readiness.ts +26 -22
  974. package/src/app/runtime-evidence-maintenance.test.ts +34 -1
  975. package/src/app/runtime-lifecycle-default.ts +7 -0
  976. package/src/app/runtime-lifecycle.ts +42 -3
  977. package/src/app/tool-approvals.test.ts +83 -0
  978. package/src/app/tool-approvals.ts +89 -34
  979. package/src/app/tool-proxy-payload.test.ts +81 -0
  980. package/src/app/tool-proxy.ts +24 -2
  981. package/src/core/config/console-diagnostic-location.test.ts +36 -0
  982. package/src/core/config/console-form-guard.test.ts +69 -0
  983. package/src/core/config/console-task-location.test.ts +64 -0
  984. package/src/core/contracts/delivery-replay.ts +1 -0
  985. package/src/core/contracts/notification-outbox.ts +54 -0
  986. package/src/core/contracts/openapi-tools.ts +16 -5
  987. package/src/core/contracts/schema-readiness.ts +11 -0
  988. package/src/core/contracts/tool-definition.ts +26 -0
  989. package/src/core/contracts/tool-guidance.test.ts +77 -0
  990. package/src/core/contracts/tool-guidance.ts +31 -0
  991. package/src/core/contracts/tool-input-limits.ts +15 -0
  992. package/src/core/contracts/tools-idempotency.test.ts +90 -0
  993. package/src/core/contracts/tools.ts +52 -9
  994. package/src/core/observability/openmetrics.test.ts +18 -0
  995. package/src/core/observability/openmetrics.ts +17 -0
  996. package/src/core/runtime/agent-execution-memory.test.ts +64 -0
  997. package/src/core/runtime/agent-execution-memory.ts +63 -0
  998. package/src/core/runtime/finish-runtime.test.ts +20 -0
  999. package/src/core/runtime/finish-runtime.ts +13 -5
  1000. package/src/core/runtime/inhub-runtime.ts +10 -2
  1001. package/src/core/runtime/notification-outbox-work.ts +15 -0
  1002. package/src/core/state/notification-outbox.ts +66 -0
  1003. package/src/core/state/state-contracts.ts +7 -0
  1004. package/src/infrastructure/config/config-approval-ledger.ts +23 -1
  1005. package/src/infrastructure/config/config-delivery-dlq-ledger.ts +26 -13
  1006. package/src/infrastructure/config/config-observability-ledger.ts +2 -0
  1007. package/src/infrastructure/config/configstore.ts +8 -4
  1008. package/src/infrastructure/schema/schema-readiness.ts +29 -0
  1009. package/src/infrastructure/state/notification-outbox-jsonl.ts +80 -0
  1010. package/src/infrastructure/state/notification-outbox-mysql.ts +100 -0
  1011. package/src/infrastructure/state/notification-outbox-storage.test.ts +325 -0
  1012. package/src/infrastructure/state/state-jsonl.ts +64 -13
  1013. package/src/infrastructure/state/state-mysql.ts +39 -5
  1014. package/src/modules/usage/contracts.ts +7 -0
  1015. package/src/modules/usage/http.ts +2 -0
  1016. package/src/modules/usage/model-continuation.test.ts +109 -0
  1017. package/src/modules/usage/model-gateway.ts +5 -1
  1018. package/src/modules/usage/output-budget.mysql.test.ts +84 -0
  1019. package/src/modules/usage/output-budget.test.ts +167 -0
  1020. package/src/modules/usage/output-budget.ts +73 -0
  1021. package/src/modules/usage/provider-stream.test.ts +22 -0
  1022. package/src/modules/usage/provider.ts +2 -3
  1023. package/src/modules/usage/repository.ts +6 -0
  1024. package/src/modules/usage/test-harness.ts +4 -2
  1025. package/src/routes/admin-approval-view.test.ts +109 -0
  1026. package/src/routes/admin-approval-view.ts +36 -0
  1027. package/src/routes/admin-notifications.test.ts +75 -0
  1028. package/src/routes/admin-notifications.ts +77 -0
  1029. package/src/routes/admin-readiness.test.ts +52 -0
  1030. package/src/routes/admin-runtime-ux.test.ts +51 -0
  1031. package/src/routes/admin-runtime-ux.ts +25 -0
  1032. package/src/routes/admin-runtime.test.ts +25 -0
  1033. package/src/routes/admin-runtime.ts +51 -8
  1034. package/src/routes/admin.ts +10 -0
  1035. package/src/routes/agent-api.test.ts +80 -1
  1036. package/src/routes/agent-api.ts +63 -4
  1037. package/src/routes/agent-tool-detail.test.ts +140 -0
  1038. package/src/routes/public-default.ts +1 -1
  1039. package/src/services/kb-agent.test.ts +84 -0
  1040. package/src/services/kb.ts +73 -0
  1041. package/src/test-support/notification-outbox-journal-crash-child.ts +20 -0
  1042. package/vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz +0 -0
  1043. package/vendor/mammoth-library/LICENSE +22 -0
  1044. package/vendor/mammoth-library/SOURCE.json +57 -0
  1045. package/vendor/mammoth-library/browser/docx/files.js +14 -0
  1046. package/vendor/mammoth-library/browser/unzip.js +12 -0
  1047. package/vendor/mammoth-library/lib/document-to-html.js +469 -0
  1048. package/vendor/mammoth-library/lib/documents.js +254 -0
  1049. package/vendor/mammoth-library/lib/docx/body-reader.js +798 -0
  1050. package/vendor/mammoth-library/lib/docx/comments-reader.js +31 -0
  1051. package/vendor/mammoth-library/lib/docx/content-types-reader.js +58 -0
  1052. package/vendor/mammoth-library/lib/docx/document-xml-reader.js +30 -0
  1053. package/vendor/mammoth-library/lib/docx/docx-reader.js +226 -0
  1054. package/vendor/mammoth-library/lib/docx/files.js +80 -0
  1055. package/vendor/mammoth-library/lib/docx/notes-reader.js +28 -0
  1056. package/vendor/mammoth-library/lib/docx/numbering-xml.js +111 -0
  1057. package/vendor/mammoth-library/lib/docx/office-xml-reader.js +73 -0
  1058. package/vendor/mammoth-library/lib/docx/relationships-reader.js +43 -0
  1059. package/vendor/mammoth-library/lib/docx/style-map.js +75 -0
  1060. package/vendor/mammoth-library/lib/docx/styles-reader.js +90 -0
  1061. package/vendor/mammoth-library/lib/docx/uris.js +21 -0
  1062. package/vendor/mammoth-library/lib/html/ast.js +51 -0
  1063. package/vendor/mammoth-library/lib/html/index.js +41 -0
  1064. package/vendor/mammoth-library/lib/html/simplify.js +88 -0
  1065. package/vendor/mammoth-library/lib/images.js +31 -0
  1066. package/vendor/mammoth-library/lib/index.d.ts +86 -0
  1067. package/vendor/mammoth-library/lib/index.js +111 -0
  1068. package/vendor/mammoth-library/lib/options-reader.js +107 -0
  1069. package/vendor/mammoth-library/lib/promises.js +42 -0
  1070. package/vendor/mammoth-library/lib/raw-text.js +14 -0
  1071. package/vendor/mammoth-library/lib/results.js +72 -0
  1072. package/vendor/mammoth-library/lib/style-reader.js +365 -0
  1073. package/vendor/mammoth-library/lib/styles/document-matchers.js +100 -0
  1074. package/vendor/mammoth-library/lib/styles/html-paths.js +75 -0
  1075. package/vendor/mammoth-library/lib/styles/parser/tokeniser.js +30 -0
  1076. package/vendor/mammoth-library/lib/transforms.js +62 -0
  1077. package/vendor/mammoth-library/lib/underline.js +11 -0
  1078. package/vendor/mammoth-library/lib/unzip.js +20 -0
  1079. package/vendor/mammoth-library/lib/writers/html-writer.js +159 -0
  1080. package/vendor/mammoth-library/lib/writers/index.js +14 -0
  1081. package/vendor/mammoth-library/lib/writers/markdown-writer.js +163 -0
  1082. package/vendor/mammoth-library/lib/xml/index.js +8 -0
  1083. package/vendor/mammoth-library/lib/xml/nodes.js +70 -0
  1084. package/vendor/mammoth-library/lib/xml/reader.js +69 -0
  1085. package/vendor/mammoth-library/lib/xml/writer.js +61 -0
  1086. package/vendor/mammoth-library/lib/xml/xmldom.js +23 -0
  1087. package/vendor/mammoth-library/lib/zipfile.js +72 -0
  1088. package/vendor/mammoth-library/package.json +39 -0
  1089. package/vendor/mammoth-library/upstream-package.json +64 -0
  1090. package/vendor/mammoth-library-distribution.json +4 -0
  1091. package/web/console/assets/Accounts-CjIBO3sU.css +1 -0
  1092. package/web/console/assets/Accounts-Dhyw-7wF.js +3 -0
  1093. package/web/console/assets/AgentClients-BA0M26-I.css +1 -0
  1094. package/web/console/assets/AgentClients-DWxb8-ko.js +1 -0
  1095. package/web/console/assets/AgentTasks-DOyxANnx.css +1 -0
  1096. package/web/console/assets/AgentTasks-DUHD4dzr.js +2 -0
  1097. package/web/console/assets/Approvals-Brl-2uJq.css +1 -0
  1098. package/web/console/assets/Approvals-CQx1YWxW.js +1 -0
  1099. package/web/console/assets/Audit--QcdVlMh.js +1 -0
  1100. package/web/console/assets/Audit-DAdmOnIs.css +1 -0
  1101. package/web/console/assets/{BrandLockup-BgASiRSE.js → BrandLockup-DQcaW4Nt.js} +1 -1
  1102. package/web/console/assets/Channels-DJJU3ksE.css +1 -0
  1103. package/web/console/assets/Channels-cGS5WfQ-.js +105 -0
  1104. package/web/console/assets/ChatEntries-BYpji27B.css +1 -0
  1105. package/web/console/assets/ChatEntries-nh23Iz5O.js +7 -0
  1106. package/web/console/assets/Clients-CX5EeYio.js +3 -0
  1107. package/web/console/assets/Clients-CbZAou8E.css +1 -0
  1108. package/web/console/assets/Cost-C6oQvz9P.css +1 -0
  1109. package/web/console/assets/Cost-DOZfdNS9.js +1 -0
  1110. package/web/console/assets/Credentials--aHs57yV.css +1 -0
  1111. package/web/console/assets/Credentials-sy6W9Sac.js +1 -0
  1112. package/web/console/assets/Diagnostics-CKs27Dnv.css +1 -0
  1113. package/web/console/assets/Diagnostics-CyoM1XrZ.js +1 -0
  1114. package/web/console/assets/Executors-2Upi6bOS.css +1 -0
  1115. package/web/console/assets/Executors-BQqqiFwt.js +1 -0
  1116. package/web/console/assets/HelpTip-DLlhaGQp.js +1 -0
  1117. package/web/console/assets/HelpTip-bbDEyuqV.css +1 -0
  1118. package/web/console/assets/Kb-5R3ce4UU.js +5 -0
  1119. package/web/console/assets/Kb-BM_PYi11.css +1 -0
  1120. package/web/console/assets/{Login-DA6BASZd.js → Login-YKeUwdgo.js} +1 -1
  1121. package/web/console/assets/Projects-DHwHrPT9.css +1 -0
  1122. package/web/console/assets/Projects-Grgb6fOv.js +1 -0
  1123. package/web/console/assets/Routes-DR_Yf02e.css +1 -0
  1124. package/web/console/assets/Routes-DYgrXlRJ.js +138 -0
  1125. package/web/console/assets/Runs-CwTddJJj.js +3 -0
  1126. package/web/console/assets/Runs-D4FOvNfu.css +1 -0
  1127. package/web/console/assets/Setup-Ca0b1d1-.css +1 -0
  1128. package/web/console/assets/Setup-D_xUPNDq.js +1 -0
  1129. package/web/console/assets/Shell-BTg8Vw_L.css +1 -0
  1130. package/web/console/assets/Shell-Dfam2Uoj.js +1 -0
  1131. package/web/console/assets/StorageBuckets-7QLBpV4a.css +1 -0
  1132. package/web/console/assets/StorageBuckets-CP6e50wI.js +1 -0
  1133. package/web/console/assets/SystemSettings-BRYKyJNa.js +1 -0
  1134. package/web/console/assets/SystemSettings-HsXGx0aH.css +1 -0
  1135. package/web/console/assets/SystemStatus-B-VfRsQd.css +1 -0
  1136. package/web/console/assets/SystemStatus-CbPsDsGt.js +1 -0
  1137. package/web/console/assets/Targets-1j4-g6rC.css +1 -0
  1138. package/web/console/assets/Targets-C2LkR2AF.js +1 -0
  1139. package/web/console/assets/Tools-C9HPJqJb.css +1 -0
  1140. package/web/console/assets/Tools-C9JNJUS0.js +2 -0
  1141. package/web/console/assets/Usage-D1Mv6vGY.js +1 -0
  1142. package/web/console/assets/Usage-DMOzUsqh.css +1 -0
  1143. package/web/console/assets/UsageAccess-77LmGCm6.js +1 -0
  1144. package/web/console/assets/UsageAccess-C6ZGxEgJ.css +1 -0
  1145. package/web/console/assets/{UsageHelp-BBKIvbQ5.js → UsageHelp-BmuiE1Ew.js} +1 -1
  1146. package/web/console/assets/client-route-draft-DxZRxKPT.js +1 -0
  1147. package/web/console/assets/console-location-Csv-xsnl.js +1 -0
  1148. package/web/console/assets/form-guard-8GrFpry0.js +1 -0
  1149. package/web/console/assets/{index-65JiiUr4.js → index-B_5UfiTw.js} +1 -1
  1150. package/web/console/assets/index-MjZJEFIN.js +2 -0
  1151. package/web/console/assets/{request-BpaimqEb.js → request-rqm6MT0s.js} +1 -1
  1152. package/web/console/assets/runtime-feedback-gPfZVNvY.js +1 -0
  1153. package/web/console/assets/{schema-D0Z4kFCZ.js → schema-o3mK4mid.js} +1 -1
  1154. package/web/console/assets/task-page-location-DWiGtAln.js +1 -0
  1155. package/web/console/assets/use-list-location-FvLFt0Tq.css +1 -0
  1156. package/web/console/assets/use-list-location-cIPy2cKM.js +1 -0
  1157. package/web/console/assets/use-unsaved-form-DScKD0h9.js +1 -0
  1158. package/web/console/assets/{util-DZYfJ5Zo.js → util-B40VqOwl.js} +1 -1
  1159. package/web/console/assets/{vendor-element-8cVcdt5T.js → vendor-element-BT8tHCFk.js} +1 -1
  1160. package/web/console/assets/{vendor-mammoth-CnDA23N0.js → vendor-mammoth-CVIXVxTN.js} +1 -1
  1161. package/web/console/assets/{vendor-vue-Co7x2FW6.js → vendor-vue-DhbG0vd4.js} +7 -7
  1162. package/web/console/index.html +3 -3
  1163. package/web-admin/package-lock.json +9 -27
  1164. package/web-admin/package.json +2 -2
  1165. package/web-admin/src/client-route-draft.ts +25 -0
  1166. package/web-admin/src/components/AgentSetupPanel.vue +54 -41
  1167. package/web-admin/src/components/HelpTip.vue +4 -1
  1168. package/web-admin/src/components/ListLocationBar.vue +22 -0
  1169. package/web-admin/src/components/NotificationOutboxPanel.vue +134 -0
  1170. package/web-admin/src/console-entry.test.ts +26 -0
  1171. package/web-admin/src/console-entry.ts +20 -0
  1172. package/web-admin/src/console-location.ts +35 -0
  1173. package/web-admin/src/form-guard.ts +35 -0
  1174. package/web-admin/src/layout/Shell.vue +18 -65
  1175. package/web-admin/src/onboarding-state.test.ts +174 -0
  1176. package/web-admin/src/onboarding-state.ts +122 -0
  1177. package/web-admin/src/pages/Accounts.vue +44 -24
  1178. package/web-admin/src/pages/AgentClients.vue +47 -29
  1179. package/web-admin/src/pages/AgentTasks.vue +57 -12
  1180. package/web-admin/src/pages/Approvals.vue +105 -25
  1181. package/web-admin/src/pages/Audit.vue +15 -6
  1182. package/web-admin/src/pages/Channels.vue +136 -43
  1183. package/web-admin/src/pages/ChatEntries.vue +96 -41
  1184. package/web-admin/src/pages/Clients.vue +87 -26
  1185. package/web-admin/src/pages/Cost.vue +15 -4
  1186. package/web-admin/src/pages/Credentials.vue +63 -32
  1187. package/web-admin/src/pages/Diagnostics.vue +103 -54
  1188. package/web-admin/src/pages/Executors.vue +103 -40
  1189. package/web-admin/src/pages/Kb.vue +278 -128
  1190. package/web-admin/src/pages/Projects.vue +44 -16
  1191. package/web-admin/src/pages/Routes.vue +168 -247
  1192. package/web-admin/src/pages/Runs.vue +169 -91
  1193. package/web-admin/src/pages/Setup.vue +182 -291
  1194. package/web-admin/src/pages/StorageBuckets.vue +61 -25
  1195. package/web-admin/src/pages/SystemSettings.vue +76 -51
  1196. package/web-admin/src/pages/SystemStatus.vue +54 -30
  1197. package/web-admin/src/pages/Targets.vue +45 -17
  1198. package/web-admin/src/pages/Tools.vue +133 -68
  1199. package/web-admin/src/pages/Usage.vue +64 -25
  1200. package/web-admin/src/pages/UsageAccess.vue +11 -8
  1201. package/web-admin/src/route-call-snippets.test.ts +82 -0
  1202. package/web-admin/src/route-call-snippets.ts +178 -0
  1203. package/web-admin/src/router.ts +11 -29
  1204. package/web-admin/src/runtime-feedback.ts +43 -0
  1205. package/web-admin/src/task-page-location.ts +66 -0
  1206. package/web-admin/src/usage-output-budget.test.ts +26 -0
  1207. package/web-admin/src/usage-output-budget.ts +46 -0
  1208. package/web-admin/src/use-list-location.ts +24 -0
  1209. package/web-admin/src/use-unsaved-form.ts +38 -0
  1210. package/web-admin/tests/model-output-budget.browser.mjs +69 -0
  1211. package/security/dependency-audit-exceptions.json +0 -192
  1212. package/web/console/assets/Accounts-Bervi5JU.css +0 -1
  1213. package/web/console/assets/Accounts-DKhw_QLr.js +0 -3
  1214. package/web/console/assets/AgentClients-CM4_5HaA.js +0 -1
  1215. package/web/console/assets/AgentClients-i52AI6YV.css +0 -1
  1216. package/web/console/assets/AgentTasks-BsG850Il.css +0 -1
  1217. package/web/console/assets/AgentTasks-CkQgZTU5.js +0 -2
  1218. package/web/console/assets/Approvals-B9O9TkbO.js +0 -1
  1219. package/web/console/assets/Approvals-DlTSHl_7.css +0 -1
  1220. package/web/console/assets/Audit-2vDC1SPu.js +0 -1
  1221. package/web/console/assets/Audit-CSu6_3oD.css +0 -1
  1222. package/web/console/assets/Channels-A-GvkNBt.js +0 -105
  1223. package/web/console/assets/Channels-CCn0L1jg.css +0 -1
  1224. package/web/console/assets/ChatEntries-BLxymI67.js +0 -7
  1225. package/web/console/assets/ChatEntries-DsYtcXN6.css +0 -1
  1226. package/web/console/assets/Clients-CSHIsaWU.css +0 -1
  1227. package/web/console/assets/Clients-DeNlmvS6.js +0 -3
  1228. package/web/console/assets/Cost-CBq_L4Kz.js +0 -1
  1229. package/web/console/assets/Cost-CjT39DSZ.css +0 -1
  1230. package/web/console/assets/Credentials-DmtbctNj.js +0 -1
  1231. package/web/console/assets/Credentials-ioLP0qYN.css +0 -1
  1232. package/web/console/assets/Diagnostics-BbcRDiA-.js +0 -1
  1233. package/web/console/assets/Diagnostics-Ya05PTDp.css +0 -1
  1234. package/web/console/assets/Executors-CjhEM54c.css +0 -1
  1235. package/web/console/assets/Executors-gGgmQrDt.js +0 -1
  1236. package/web/console/assets/HelpTip-CA6Bm7Nx.css +0 -1
  1237. package/web/console/assets/HelpTip-Dtdt2tKR.js +0 -1
  1238. package/web/console/assets/Kb-CzIzd9xr.css +0 -1
  1239. package/web/console/assets/Kb-lgY6OXUz.js +0 -5
  1240. package/web/console/assets/Projects-Bm8AjsNx.css +0 -1
  1241. package/web/console/assets/Projects-DEbmB_sT.js +0 -1
  1242. package/web/console/assets/Routes-CyXV4Pba.css +0 -1
  1243. package/web/console/assets/Routes-qS6LLoyS.js +0 -124
  1244. package/web/console/assets/Runs-CvGTV8I-.css +0 -1
  1245. package/web/console/assets/Runs-DG-VLRSc.js +0 -3
  1246. package/web/console/assets/Setup-D7nxgn-9.css +0 -1
  1247. package/web/console/assets/Setup-DEpVF5uw.js +0 -1
  1248. package/web/console/assets/Shell-DgoPgK1E.js +0 -1
  1249. package/web/console/assets/Shell-ykb-tUfo.css +0 -1
  1250. package/web/console/assets/StorageBuckets-CVgpZRWY.css +0 -1
  1251. package/web/console/assets/StorageBuckets-DJtNN769.js +0 -1
  1252. package/web/console/assets/SystemSettings-0DEUgeTR.js +0 -1
  1253. package/web/console/assets/SystemSettings-BjiHyrXO.css +0 -1
  1254. package/web/console/assets/SystemStatus-CR1phiPE.js +0 -1
  1255. package/web/console/assets/SystemStatus-I11I67rw.css +0 -1
  1256. package/web/console/assets/Targets-D65l-IMB.js +0 -1
  1257. package/web/console/assets/Targets-DTb5tn6z.css +0 -1
  1258. package/web/console/assets/Tools-DU8ei6sd.css +0 -1
  1259. package/web/console/assets/Tools-DqtrINrN.js +0 -2
  1260. package/web/console/assets/Usage-B5njXNjx.js +0 -1
  1261. package/web/console/assets/Usage-CAeDGjrb.css +0 -1
  1262. package/web/console/assets/UsageAccess-CGGaWTuj.css +0 -1
  1263. package/web/console/assets/UsageAccess-ChnB4pjb.js +0 -1
  1264. package/web/console/assets/index-sLKrJd_p.js +0 -2
@@ -4,10 +4,12 @@ This task answers one narrow question: **can a developer who is new to BailingHu
4
4
 
5
5
  It is not certification, a benchmark, or evidence of production adoption. Passing means that the public installation path and demo governance loop were independently reproducible. It does not mean that the validator connected BailingHub to a real business system.
6
6
 
7
+ After the demo, use the [business integration walkthrough (Chinese)](INTEGRATION_WALKTHROUGH.md) for a non-production API you control: one read, one approved write, permission changes, changed approval parameters, unknown outcomes and restart. Record time, blockers and maintainer assistance separately from independent success.
8
+
7
9
  ## Scope
8
10
 
9
11
  - Target: the open-source BailingHub Docker demo;
10
- - Stable baseline: `v0.9.3`;
12
+ - Stable baseline: `v0.10.0`;
11
13
  - Data: the bundled demo orders, tickets, refunds, and failure probe;
12
14
  - Expected time: about 20 minutes after images and dependencies are available;
13
15
  - Not required: a real model key, production API, production credential, or real business data.
@@ -32,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
32
34
  cd "$HOME/bailinghub"
33
35
  ```
34
36
 
35
- The installer pulls the official `v0.9.3` images by default, generates random tokens and an admin password, starts the services, and runs the smoke test. The initial administrator is created only when the administrator table is empty; restarting, upgrading, recreating containers, or reinstalling against the same persistent database does not overwrite a changed password. The optional `/metrics` endpoint remains disabled and does not affect core validation. Keep the reported version, install mode, elapsed time, and the commands printed under `常用命令`, but never include passwords or tokens in your report. After Docker is installed, the current non-root login usually still needs the printed `sudo docker compose ...` commands; Docker group membership may not take effect until the next login.
37
+ The installer pulls the official `v0.10.0` images by default, generates random tokens and an admin password, starts the services, and runs the smoke test. The initial administrator is created only when the administrator table is empty; restarting, upgrading, recreating containers, or reinstalling against the same persistent database does not overwrite a changed password. The optional `/metrics` endpoint remains disabled and does not affect core validation. Keep the reported version, install mode, elapsed time, and the commands printed under `常用命令`, but never include passwords or tokens in your report. After Docker is installed, the current non-root login usually still needs the printed `sudo docker compose ...` commands; Docker group membership may not take effect until the next login.
36
38
 
37
39
  If the default directory is already in use, choose a new empty directory instead of overwriting an existing deployment:
38
40
 
@@ -46,7 +48,7 @@ cd "$HOME/bailinghub-validation"
46
48
  ### Path B: local source reproduction
47
49
 
48
50
  ```bash
49
- git clone --depth 1 --branch v0.9.3 https://github.com/bailinghub/bailinghub.git
51
+ git clone --depth 1 --branch v0.10.0 https://github.com/bailinghub/bailinghub.git
50
52
  cd bailinghub
51
53
  git rev-parse HEAD
52
54
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -167,7 +169,7 @@ After the core task passes, you may continue with:
167
169
  - [Trusted rich rendering and chat reliability](RELEASE_NOTES_v0.1.15.en.md).
168
170
  - [Bounded tool runtime and resilient semantic retrieval](RELEASE_NOTES_v0.1.16.en.md).
169
171
  - [Composable Core and Kernel Host API v1](RELEASE_NOTES_v0.3.0.en.md).
170
- - [Current stable release notes](RELEASE_NOTES_v0.9.3.en.md).
172
+ - [Current stable release notes](RELEASE_NOTES_v0.10.0.en.md).
171
173
 
172
174
  Select the relevant track in the same Issue form and disclose whether you received direct maintainer assistance.
173
175
 
@@ -4,10 +4,12 @@
4
4
 
5
5
  它不是认证、性能测试或生产采用证明。跑通本任务只说明公开安装路径和 demo 治理链路可以被独立复现;不代表验证者已把 BailingHub 接入真实业务。
6
6
 
7
+ 完成 Demo 后,如需检验接入自己系统的难度,继续使用[非作者业务接入走查](INTEGRATION_WALKTHROUGH.md):覆盖一读一审批写、权限变化、审批改参、结果不明及重启,逐步记录耗时、阻塞和维护者帮助等级。
8
+
7
9
  ## 验证范围
8
10
 
9
11
  - 验证对象:BailingHub 开源版 Docker demo;
10
- - 稳定基线:`v0.9.3`;
12
+ - 稳定基线:`v0.10.0`;
11
13
  - 数据范围:仓库自带的 demo 订单、工单、退款和故障工具;
12
14
  - 预计用时:镜像和依赖下载完成后约 20 分钟;
13
15
  - 不需要:真实大模型 Key、生产 API、生产凭据或真实业务数据。
@@ -32,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
32
34
  cd "$HOME/bailinghub"
33
35
  ```
34
36
 
35
- 脚本默认拉取 `v0.9.3` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
37
+ 脚本默认拉取 `v0.10.0` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
36
38
 
37
39
  如果默认目录已被占用,请使用一个新的空目录,不要覆盖现有部署:
38
40
 
@@ -46,7 +48,7 @@ cd "$HOME/bailinghub-validation"
46
48
  ### 路径 B:本地源码复现
47
49
 
48
50
  ```bash
49
- git clone --depth 1 --branch v0.9.3 https://github.com/bailinghub/bailinghub.git
51
+ git clone --depth 1 --branch v0.10.0 https://github.com/bailinghub/bailinghub.git
50
52
  cd bailinghub
51
53
  git rev-parse HEAD
52
54
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -167,7 +169,7 @@ docker compose exec -T bailinghub npm run demo:e2e
167
169
  - [可信富内容渲染与聊天可靠性](RELEASE_NOTES_v0.1.15.md)。
168
170
  - [工具运行时收敛与语义检索韧性](RELEASE_NOTES_v0.1.16.md)。
169
171
  - [可组合 Core 与 Kernel Host API v1](RELEASE_NOTES_v0.3.0.md)。
170
- - [当前稳定版发布说明](RELEASE_NOTES_v0.9.3.md)。
172
+ - [当前稳定版发布说明](RELEASE_NOTES_v0.10.0.md)。
171
173
 
172
174
  扩展验证请在同一 Issue 模板中选择对应路径,并说明是否获得过维护者的直接帮助。
173
175
 
@@ -0,0 +1,65 @@
1
+ # 非作者业务接入走查
2
+
3
+ 这份清单用于检验公开文档能否让此前不熟悉项目的开发者完成接入。先完成[独立 Demo 验证](INDEPENDENT_VALIDATION.md),再用自己有权操作的非生产 API 跑通一项读取与一项需审批的写操作。Demo 成功、维护者代做和真实业务接入分别记录。
4
+
5
+ ## 准备与记录方式
6
+
7
+ - 固定 Core 版本、提交或镜像摘要,以及所用 SDK/客户端版本。未发布源码必须标明候选身份,不能用版本字段代替提交号。
8
+ - 使用独立测试环境、合成数据和可撤销的小范围测试操作;不连接生产写接口、不使用真实退款。
9
+ - 业务方提供两个精确 operationId 及各自的 scope、现有权限判断、审批决策入口,以及查询原业务操作结果的方法。AI 或浏览器输入不能决定租户和操作主体。
10
+ - 选一个入口即可:业务后端调用、网页 Widget 或本地 Agent。仅在该入口需要模型时提供测试模型;不用先安装全部适配器。
11
+ - 预留半天作为首次走查时间盒;时间用完仍阻塞就记录问题,不通过维护者代做来记为“独立成功”。环境下载耗时与实际操作耗时分开。
12
+ - 每步记录 `PASS / FAIL / BLOCKED / NOT_RUN / NOT_APPLICABLE`、耗时、文档入口、期望与实际、脱敏错误码和关联 ID。`NOT_APPLICABLE` 要写理由,不算通过。
13
+
14
+ 帮助等级:`H0` 只用公开资料;`H1` 获得文档定位提示;`H2` 获得环境或接入方案指导;`H3` 维护者直接改配置/代码或代操作。失败后帮助继续推进可以,但应分别保留帮助前后的结果。
15
+
16
+ ## A. 全新安装与 Demo
17
+
18
+ 按[独立验证任务卡](INDEPENDENT_VALIDATION.md)选择安装路径并完成五项检查,记录首个阻塞点。确认匿名预览不继承后台身份。自动 Demo 的通过不代替后面的自有 API 和负向检查。
19
+
20
+ ## B. 自有非生产 API:一读一写
21
+
22
+ | 步骤 | 操作 | 通过时应留下的证据 |
23
+ | --- | --- | --- |
24
+ | B1 选定业务边界 | 选择一项查询和一项需审批的写接口,明确成功、拒绝、重复调用与结果不明时的处理 | 两个 operationId 及独立精确 scope、合成对象、业务方权限/幂等规则说明 |
25
+ | B2 声明和验签 | 按 [SDK 与业务契约](CONTRACT.md)发布能力清单,接入签名校验及既有业务权限判断 | 无签名、错误签名、无主体或无权限请求被业务端拒绝;不要用 `authorize = true` 替代授权 |
26
+ | B3 注册与限权 | 注册工具源,核对清单访问策略;路由 `allow` 填上述 scope(不是 operationId),主体由可信后端提供 | 核对最终目录只有目标工具;若共享 scope 带入其他工具,先拆测试声明或专用工具源。目录可见不等于业务授权通过 |
27
+ | B4 查询 | 从选定入口查询合成对象,并对照业务接口结果 | 原 run/job/trace 与业务请求关联、查询结果一致 |
28
+ | B5 待审批 | 发起一次受审批的写操作,先不批准 | 审批意图与冻结参数;业务端写入计数仍为零 |
29
+ | B6 批准与核对 | 由有权限的人批准;按所选入口的续办语义继续原操作 | 原审批、原调用与业务记录对应,只有获批参数被执行;通知或模型总结不能替代业务记录 |
30
+ | B7 可解释性 | 请接入者仅用控制台/公开接口解释这次操作是谁发起、为何允许、审批了什么、最终结果如何 | 能找到原 trace/调用与业务结果,记录缺失或难懂的信息 |
31
+
32
+ 参考:[快速开始第 9 步](QUICKSTART.md)、[Agent 接入](AGENT_CLIENT_QUICKSTART.md)、[Agent Runtime](AGENT_CLIENT_RUNTIME_API.md)。本地 Agent 的只读 receipt 与有副作用的 resume 分开;不要把 resume 当轮询。
33
+
34
+ ## C. 隔离负向场景
35
+
36
+ 每个场景使用新的合成测试对象,并在业务端记录实际写入次数。异常只注入测试接口;不通过更换请求 ID、授权或重建任务掩盖失败。
37
+
38
+ | 场景 | 操作 | 应有结果 |
39
+ | --- | --- | --- |
40
+ | C1 拒绝审批 | 为另一项合成写请求拒绝审批,再从原入口核对状态 | 业务写入为零,拒绝可追踪 |
41
+ | C2 批准后改参 | 在隔离调用夹具中尝试把获批请求的金额/对象或其他受审批参数改掉 | 修改不能复用原批准;业务端不得执行未获批参数。没有可控调用夹具则记 BLOCKED,不宣称已测 |
42
+ | C3 权限变化 | 清单可见后撤销该测试主体的业务权限,再发起调用 | 业务端最终授权拒绝;目录缓存不能提供执行权限 |
43
+ | C4a 业务确认丢失 | 测试业务端已接收写入,但让响应在抵达 Hub 前丢失;核对原调用和业务记录 | 按入口契约呈现结果不明(Agent receipt 为 `reconciliation_required`),保留原调用直到有证据核定;不得自动创建替代写。普通 5xx 演示不等于此场景 |
44
+ | C4b 客户端确认丢失 | Core 已持久保存结果,但客户端未收到响应;通过只读 receipt 核对原调用 | 返回已保存的结果(成功调用为 `executed`),业务写入次数不增加;不能把客户端超时直接当作 Core 结果未知 |
45
+ | C5 重复请求 | 对一个已确认的逻辑操作按该接口规定重试同一请求/幂等键 | 实际业务副作用不重复;明确区分 Hub 原调用恢复和业务自身幂等保障 |
46
+ | C6 停止与恢复 | 在测试任务/审批有记录时正常停止,再使用同一存储启动并核对原 ID | 状态和关联保留,已完成业务不因重启重复执行;正常重启不冒充 SIGKILL 验证 |
47
+
48
+ 若选用本地 Agent,可按 [任务控制](AGENT_TASK_CONTROL.md)追加暂停、跨轮写额度和撤销成员场景;它们是选定能力的扩展,不能替代 B/C 的业务权限检查。
49
+
50
+ ## 收口与反馈模板
51
+
52
+ ```text
53
+ 验证者角色(是否参与过项目实现):
54
+ 日期 / 环境 / Core 提交或镜像摘要 / SDK 与入口版本:
55
+ 轨道:Demo / 自有非生产 API
56
+ 目标操作与授权范围(脱敏):
57
+ 步骤编号 / 状态 / 耗时 / 帮助等级:
58
+ 所用公开文档:
59
+ 期望 / 实际 / 首个阻塞点:
60
+ 脱敏错误码、关联 ID、业务端实际写入次数:
61
+ 能否在无维护者代做的情况下重复完成:
62
+ 尚未测试的场景及原因:
63
+ ```
64
+
65
+ 保留失败记录,修复后重跑原阻塞步骤及相关上下游。反馈可用[独立验证 Issue 模板](https://github.com/bailinghub/bailinghub/issues/new?template=independent_validation.yml),但不上传密钥、完整配置、个人信息或业务正文。两位开发者能复现也只证明相应版本、入口和环境;性能、升级恢复及长期运行仍需各自的证据。
@@ -56,6 +56,8 @@ Persist the original `operation_id` locally. Missing responses, offline reopenin
56
56
 
57
57
  Responses expose `result_state`, `billing_state`, `response`, raw `usage` (possibly absent), `raw_usage`, `reference_cost_usd`, `billed_usd` and `overage_usd`. `billing_rate` includes plan revision, multiplier and price snapshot. Results have bounded retention; `response_expired` does not authorize re-dispatch.
58
58
 
59
+ For chat, `result_state=complete` means the provider exchange was saved, not that the answer or Agent task is complete. Native finish reasons, partial text, reasoning and tool calls remain in `bailing.provider-response.v1` for the host adapter. Explicit output-budget cutoff differs from transport uncertainty; Core never generates another request automatically. See [output budgets](MODEL_OUTPUT_BUDGET.en.md) and [host continuation/recovery](MODEL_CONTINUATION.en.md).
60
+
59
61
  Trusted backends retain the existing identity-exchange entry point. `model_access: token_gateway` identifies plan-scoped credentials, not a legacy Token allowance mode; `service` remains restricted to one model. Identity, business authority, fixed session scope, approvals and business-call archives remain independent and are not expanded by a plan.
60
62
 
61
63
  Console endpoints use `/admin/api/usage/billing/`. Business backends can use `/usage/v1/external/billing/plans` and `/accounts/{id}/summary|grant|control`, retaining source ownership, permissions and idempotent grants.
@@ -41,6 +41,8 @@
41
41
 
42
42
  `GET /usage/v1/capabilities` 的 `model_gateway.supported=true` 为接入入口,schema 为 `bailing.model-gateway.v1`,`billing_unit=USD`、`orchestration=host`、`turn_required=false`。
43
43
 
44
+ 对话模型可显式分开默认输出预算和服务上限,并声明实际供应商参数及是否包含思考;旧服务不会自动迁移。配置、目录字段、拒绝回执及原请求恢复边界见[模型输出预算契约](MODEL_OUTPUT_BUDGET.md)。
45
+
44
46
  | 接口 | 用途 |
45
47
  | --- | --- |
46
48
  | `GET /usage/v1/model/models` | 当前账户套餐中的对话模型;显示管理员配置的 label |
@@ -56,6 +58,8 @@
56
58
 
57
59
  响应分别提供 `result_state`、`billing_state`、`response`、原始 `usage`(可为空)、`raw_usage`、`reference_cost_usd`、`billed_usd`、`overage_usd`。`billing_rate` 包含套餐修订、统一倍率和参考价格快照。`response` 有限期保存,过期返回 `response_expired`,不能因此重发原操作。
58
60
 
61
+ 对话模型的 `result_state=complete` 只表示供应商响应交换已保存,不表示模型答案完整或宿主任务已经完成。供应商的原始 `finish_reason`、部分正文、思考内容及工具调用仍保留在 `bailing.provider-response.v1` 中,由宿主适配器解释。明确的输出预算截断与网络执行结果未知是两类情况;中枢不会因截断自动再次调用模型。参见[长任务续跑与原请求恢复](MODEL_CONTINUATION.md)。
62
+
59
63
  可信业务后端使用原身份交换接口。`model_access: token_gateway` 是套餐范围凭证的身份标记,不是旧 Token 额度模式;`service` 仍严格限制单个模型。身份、原业务授权、固定会话范围、审批和业务调用归档独立存在,不因套餐扩大授权。
60
64
 
61
65
  后台接口统一 `/admin/api/usage/billing/`;业务后端可使用 `/usage/v1/external/billing/plans` 及 `/accounts/{id}/summary|grant|control`,沿用来源所有权、权限和幂等开通规则。
@@ -82,9 +86,9 @@
82
86
  ## 生成结果与计费状态分开
83
87
 
84
88
  - `result_state=pending`:供应商请求仍在进行,宿主按原 ID 查询,不发起第二次生成。
85
- - `complete`:立即使用图片,即使 `billing_state=pending`;结算不阻塞结果。
89
+ - `complete`:结果可以立即交给宿主适配器,即使 `billing_state=pending`;结算不阻塞结果。对话适配器仍需判断答案、工具调用是否完整,图片使用声明的工具结果。
86
90
  - `failed`:已获得明确拒绝(例如不存在的接口、无效参数、权限拒绝),`dispatch=rejected`,停止等待,显示安全错误;不自动重发。当前已确认拒绝无生成的请求以零扣费关闭。
87
- - `unknown`:连接断开、服务器错误或无法解析完整结果,执行结果确实不确定。停止“正在生成”的展示,保留原 ID 供核对;不能自动换 ID 或切接口重发。不阻塞其他独立模型请求。
91
+ - `unknown`:派发后发生真实传输异常或无法持久确认原执行结果。停止“正在生成”的展示,保留原 ID 供核对;不能自动换 ID 或切接口重发。不阻塞其他独立模型请求。完整收到的对话响应原文即使包含 `finish_reason=length`、供应商错误或语义缺尾,也不因宿主解析结论被重写为中枢的传输未知状态。
88
92
  - `cancelled`:维持取消;晚到的结果和费用不重新启用宿主工具或恢复已结束轮次。
89
93
 
90
94
  失败回执的 `error` 仅包含 `code`、固定安全文案 `message`、可选的 `http_status / provider_code / provider_request_id`、`retryable=false` 及 `next_action`。不保存或返回供应商原始错误正文、提示词、密钥或地址。HTTP 408、409 与 5xx 不等于已证明没有执行。
@@ -0,0 +1,54 @@
1
+ # Long-task continuation and original-request recovery
2
+
3
+ [简体中文](MODEL_CONTINUATION.md)
4
+
5
+ Each model generation has an output budget. A host Agent task can span many model calls and tool actions. Appropriate budgets and controlled continuation complement each other; removing bounds or repeating the whole task is not a truncation strategy. This guide uses existing `bailing.model-operation.v1`, `bailing.model-stream.v1` and `bailing.provider-response.v1`, without a new continuation endpoint or private finish field.
6
+
7
+ ## Hub and host responsibilities
8
+
9
+ Core dispatches one configured request, forwards native provider JSON/SSE and saves its response, usage and dispatch evidence under the original `operation_id`. `orchestration=host` leaves task loops, semantic parsing, tool execution, checkpoints and presentation with the client host. Core never automatically repeats a POST because of `length`, missing text, an HTTP error or an unknown provider finish reason, and never switches model, protocol or credentials as a retry.
10
+
11
+ `result_state=complete` means the provider exchange was saved. Answer completeness, tool-call completeness and overall task completion are separate host decisions. `billing_state=pending` does not block use of a saved result. Timeout, input bytes, context window, service ceiling and allowance remain independent bounds that continuation cannot bypass.
12
+
13
+ ## Two distinct paths
14
+
15
+ | Confirmed condition | Host action |
16
+ | --- | --- |
17
+ | Original terminal operation is available and the provider adapter explicitly recognizes budget cutoff | Save partial content/checkpoint; prepare a distinct next-segment operation within task authority |
18
+ | Lost POST ACK, missing final operation frame, uncertain transport or storage result | Inspect the original operation first; recover saved evidence, never generate under another ID |
19
+ | Original operation remains pending | Wait or inspect that ID without parallel replacement generation |
20
+ | Normal stop, content filtering, rejection or unknown finish reason | Follow native adapter semantics without guessing automatic continuation is allowed |
21
+ | Cancelled task, ended authority or expired response without a trusted local copy | Stop automatic continuation, keep evidence and present the reason/action |
22
+
23
+ Only an adapter-supported explicit output-budget finish reason can enter the cutoff path, such as supported `finish_reason=length`. Unknown extensions are not interpreted by string guesses. Token counts equal to the budget, a short answer, normal HTTP EOF, settled billing or SSE `[DONE]` alone neither establish task completion nor permit a new segment. Some routes share output between reasoning and answer; follow the [output-budget contract](MODEL_OUTPUT_BUDGET.en.md).
24
+
25
+ Both original lookup and a repeated identical POST are protected by existing idempotency, but recovery should use read-only lookup. Changed content under the same ID conflicts; changing parameters, context or model cannot rewrite a saved intent. A lookup miss is not permission inferred from supposed non-execution; retain and resolve recovery gaps.
26
+
27
+ ## Host checkpoints
28
+
29
+ Before another segment, persist the task, original operation, selected service/descriptor revision, normalized finish reason, delivered partial content, tool results and completed/remaining steps. The next segment uses a new operation, with a parent link in host-local storage; this protocol adds no parent-operation field.
30
+
31
+ Carry saved valid content and tool results forward and continue unfinished work. Do not present the original user request as a brand-new unexecuted task or resend its model call. Native tool-call/result formatting and association IDs must remain valid. The host can merge display fragments or repeated prefixes without changing raw response or tool-result evidence.
32
+
33
+ Automatic continuation needs bounded consecutive segments, cumulative task time/cost or Token budget, loop/no-progress detection and user cancellation. The host chooses defaults under its existing task policy, never unbounded recursion. At a boundary, retain the checkpoint and show a concise reason/action rather than repeatedly asking the user to type “continue.” Near the context window, use the host's existing recoverable summary mechanism and preserve action/result references, deduplication and approval evidence.
34
+
35
+ Restart, offline recovery and replayed streams must resume the same checkpoint rather than racing two continuations. A cutoff fragment without the final operation receipt first requires original-operation recovery. Late results after user cancellation or task completion never restart the loop.
36
+
37
+ ## Text continuation must not repeat business effects
38
+
39
+ Model-operation idempotency only protects that model request. It cannot identify the same business intent proposed with a new invocation in a later segment. Persist the relationship between business action, original `invocation_id`, input digest, approval and result. A new `tool_call_id` or identical arguments alone neither proves a new write was authorized nor justifies blanket deduplication across separate tasks.
40
+
41
+ Do not execute tool calls from a truncated response even when a partial argument string happens to parse as JSON. Wait for adapter-confirmed complete tool-call termination, then apply the original schema, authority, approval and idempotency checks. Automatically repaired arguments are not the original invocation.
42
+
43
+ - Reuse completed invocation receipts/results; do not create a replacement action.
44
+ - Inspect uncertain or `reconciliation_required` calls before any further decision; continuation is not permission to retry a write.
45
+ - Agent SDK `inspectInvocation()` reads the original receipt without consuming approval or dispatching.
46
+ - Agent SDK `resume()` may perform the original invocation's first dispatch after approval. It is not polling/read-only inspection and is used only when original state and task authority permit that continuation.
47
+
48
+ Business-side idempotency and final authority remain necessary. Core does not promise exactly-once side effects across arbitrary external systems.
49
+
50
+ ## Verification limits
51
+
52
+ `provider-stream.test.ts` checks JSON/SSE cutoff, Chinese/multibyte text, reasoning usage and unfinished arguments without altering their bytes. `model-continuation.test.ts` runs actual gateway logic with synthetic persistence/pricing ports to check complete exchanges, original-ID recovery, conflict rejection, distinct continuation and transport uncertainty without retry. Those ports are not database-transaction, real-provider, client-persistence or business-effect acceptance.
53
+
54
+ Client products must separately verify segment bounds, no-progress exit, cancellation, crash/restart, concurrent windows, context summaries, completed-tool reuse and uncertain-write reconciliation. Deploying Core alone does not implement that client loop.
@@ -0,0 +1,54 @@
1
+ # 长任务续跑与原请求恢复
2
+
3
+ [English](MODEL_CONTINUATION.en.md)
4
+
5
+ 模型每次生成有输出预算;宿主 Agent 的整项任务可以由多次模型调用和工具操作组成。合理预算与自动续跑相互配合,不能靠取消边界、无条件放大预算或重复整项任务解决截断。此文使用现有 `bailing.model-operation.v1`、`bailing.model-stream.v1` 与 `bailing.provider-response.v1`,不新增续跑接口或私有结束字段。
6
+
7
+ ## 中枢和宿主的边界
8
+
9
+ 中枢按服务配置派发一次模型请求,透传原生供应商 JSON/SSE,将原响应、用量与派发证据保存到原 `operation_id`。`orchestration=host` 表示任务循环、模型语义解析、工具执行、检查点与用户体验由客户端宿主管理。中枢不因 `length`、缺少正文、HTTP 错误或未知供应商结束原因自动再次 POST,不切换模型、协议或凭据。
10
+
11
+ `result_state=complete` 只表示原供应商响应交换已保存。回答是否完整、工具参数是否完整、整项任务是否完成,是不同的宿主判断;`billing_state=pending` 也不是阻止宿主使用已保存响应的理由。单次超时、输入字节、上下文窗口、服务输出上限和账户额度保持各自边界,不能用续跑绕过。
12
+
13
+ ## 两条互斥路径
14
+
15
+ | 已确认的状态 | 宿主动作 |
16
+ | --- | --- |
17
+ | 最终原 operation 回执可用,供应商适配器明确识别输出预算截断 | 保存原部分内容和检查点;在原任务授权内准备新续段,以新的 operation 调用模型 |
18
+ | 模型 POST 丢失 ACK、流缺少最终 operation 帧、网络或持久化结果未知 | 先按原 operation 查询,只恢复已保存结果;不新建 ID 重发生成 |
19
+ | 原 operation 尚在 pending | 等待或查询原 ID,不并发生成替代请求 |
20
+ | 正常结束,或供应商说明为内容过滤、拒绝、未知结束原因 | 由适配器按原生语义处理,不猜测可以自动续跑 |
21
+ | 已取消、授权终止、原响应过期且本地无可信副本 | 停止自动续跑,保留证据并呈现需要处理的原因 |
22
+
23
+ 只有供应商适配器明确识别的输出预算结束原因才能进入截断路径。例如适配器已支持的 `finish_reason=length` 可以作为证据;未知的扩展值不能靠字符串猜测。`outputTokens` 恰好等于预算、答案很短、HTTP 正常 EOF、计费完成或 SSE `[DONE]` 均不能单独证明任务完成,也不能单独授权自动续段。某些模型把思考包含在总输出预算中,预算解释遵循[模型输出预算契约](MODEL_OUTPUT_BUDGET.md)。
24
+
25
+ 查询原 operation 与重复原 POST都受既有幂等约束保护,但恢复应优先调用只读查询。相同 ID 的不同内容是冲突,不能用改参数、补上下文或换模型修改已保存的意图。查询返回未找到也不是“已证明没有执行”的授权;恢复缺口需保留并处理。
26
+
27
+ ## 宿主续段检查点
28
+
29
+ 在发起下一段之前,宿主应持久保存任务、原 operation、选定服务与描述修订、规范化结束原因、已输出片段、工具调用结果以及已完成和未完成步骤。新续段使用新 operation,以明确的父子关联保存在宿主本地;本轮协议不增加父 operation 字段。
30
+
31
+ 续段上下文携带已经保存的有效内容与工具结果,要求从未完成步骤接续。不要把原始用户请求重新当作尚未执行的新任务,也不要重发先前模型请求。模型本轮的原生工具调用和工具结果必须保持供应商消息格式及关联标识。针对可见回答的分段展示和重复前缀,可在宿主呈现层合并;不能篡改原响应、摘要或工具结果证据。
32
+
33
+ 自动续跑需要有限的连续续段数、累计任务时间/费用或 Token 预算、循环和无进展检测,并允许用户随时取消。默认值由宿主结合其现有任务政策配置,不能无界递归;达到边界时保留检查点,以简洁原因和下一步动作代替反复要求用户手工输入“继续”。上下文接近窗口时,按宿主已有可恢复摘要机制处理,保留原 action 与结果引用,不能通过摘要丢失去重或审批证据。
34
+
35
+ 客户端重启、断网恢复和重复流回放也必须复用同一检查点,避免同时开启两个续段。只收到流中的截断终止片段而未收到最终 operation 回执时,先恢复原 operation,再决定新续段。用户取消或任务结束之后的晚到结果不得重新启动循环。
36
+
37
+ ## 工具执行不能随文本重跑
38
+
39
+ 模型 operation 的幂等只能防止同一模型请求重复派发,不能识别“模型在下一段用新 ID 重复提出同一笔业务操作”。宿主须持久化业务 action 与原 `invocation_id`、输入摘要、审批及结果的关联,并将结果带入续段。仅凭新 `tool_call_id` 或参数相同,不能证明新的业务写入已获得授权;也不能跨任务把所有相同参数一律去重。
40
+
41
+ 截断响应中出现的工具调用,即使局部参数恰好能解析为 JSON,也不能直接执行。等待供应商适配器确认完整的工具调用结束语义,并经过原能力 schema、授权、审批和幂等流程。残缺参数不能通过自动补全后当作原调用执行。
42
+
43
+ - 对已完成 invocation,复用原回执和结果,不创建新 invocation 重做。
44
+ - 对执行不确定或 `reconciliation_required` 的 invocation,先只读检查原调用,不能通过续段重试写入。
45
+ - Agent 客户端 SDK 的 `inspectInvocation()` 对应只读原 invocation receipt;它不消费审批,也不触发业务派发。
46
+ - Agent 客户端 SDK 的 `resume()` 可能在原调用审批通过后执行其首次业务派发,不能把它用作轮询或只读检查。只有原状态和原任务授权明确允许时,才能在原 invocation 上继续既有流程。
47
+
48
+ 这些约束不替代业务系统自己的幂等和授权,中枢不宣称跨所有外部系统的业务副作用 exactly-once。
49
+
50
+ ## 验证与限制
51
+
52
+ `provider-stream.test.ts` 验证 JSON/SSE 的明确截断、中文、多字节正文、思考用量及残缺工具参数的原文保留。`model-continuation.test.ts` 使用真实网关逻辑和合成持久化/报价端口验证:截断交换保持 complete、原 ID 恢复和重复请求不再派发、冲突意图拒绝、新续段单独派发、真实传输未知不自动重试。合成端口不构成数据库事务、真实供应商、客户端持久化或业务工具执行验收。
53
+
54
+ 真实客户端还需验证:续段次数边界、无进展退出、取消、崩溃重启、多窗口竞争、上下文摘要、已完成工具复用和不确定写入核对。仅部署中枢不会自动赋予客户端上述任务循环能力。
@@ -0,0 +1,69 @@
1
+ # Model output-budget contract
2
+
3
+ [简体中文](MODEL_OUTPUT_BUDGET.md)
4
+
5
+ AIaaS model services separate the default budget for a new request from its permitted service ceiling. This applies to `/usage/v1/model/models` and the chat-model gateway. It does not change bundled-chat knowledge assembly, image-model tools, metering or original-request recovery.
6
+
7
+ ## Service configuration and discovery
8
+
9
+ | Configuration | Model descriptor | Meaning |
10
+ | --- | --- | --- |
11
+ | `maxOutputTokens` | `max_output_tokens` | Operator service ceiling, a positive integer currently bounded to 1–131072; not a vendor capability claim |
12
+ | `defaultOutputTokens` | `default_output_tokens` | Default when a new request omits its output parameter; positive and no larger than the ceiling |
13
+ | `outputTokenParameter` | `output_token_parameter` | Actual configured route parameter, `max_tokens` or `max_completion_tokens` |
14
+ | `outputBudgetScope` | `output_budget_scope` | `completion_total` shares the budget between reasoning and answer; `final_answer` limits the final answer only |
15
+ | `modelMaxOutputTokens` | `model_max_output_tokens` | Optional verified vendor maximum for this parameter/scope; omit unknown values, and keep the service ceiling at or below it |
16
+
17
+ Default, parameter and scope form an all-or-none explicit group. This contract permits `max_completion_tokens` only with `completion_total`; `max_tokens` can have either scope depending on the actual provider route. Metadata neither probes nor guarantees vendor support. Do not infer semantics from model names; reverify parameter, scope and vendor maximum after changing models, credentials or routes.
18
+
19
+ `modelMaxOutputTokens` is allowed only with the explicit policy, between 1 and 10000000. A higher vendor capability never removes the platform's bounded `maxOutputTokens` ceiling. Context window, output budget, input-byte limit and timeout are independent. Descriptors do not expose credential aliases, `providerScope`, vendor URLs or request bodies.
20
+
21
+ Example values illustrate the contract, not recommended settings for a real model:
22
+
23
+ ```json
24
+ {
25
+ "maxOutputTokens": 65536,
26
+ "defaultOutputTokens": 32768,
27
+ "outputTokenParameter": "max_completion_tokens",
28
+ "outputBudgetScope": "completion_total",
29
+ "modelMaxOutputTokens": 131072
30
+ }
31
+ ```
32
+
33
+ Discovery returns the corresponding `max_output_tokens`, `default_output_tokens`, `output_token_parameter`, `output_budget_scope` and `model_max_output_tokens`. Its `provider_options` list includes only the configured output key alongside unchanged passthrough options. Gateway capabilities declare support through `output_budget` with schema `bailing.model-output-budget.v1`.
34
+
35
+ ## Dispatch and rejection
36
+
37
+ Under an explicit policy, omitting the output parameter selects the independent default and configured wire key. A matching parameter is accepted through the exact service ceiling; ceiling plus one is rejected. Both output keys together remain invalid. A different key returns HTTP 400 `USAGE_OUTPUT_PARAMETER_MISMATCH`, never a silent rename that might change reasoning/answer semantics.
38
+
39
+ ```json
40
+ {
41
+ "error": "USAGE_OUTPUT_PARAMETER_MISMATCH",
42
+ "dispatch": "not_dispatched",
43
+ "feedback": {
44
+ "output_budget": {
45
+ "expected_parameter": "max_completion_tokens",
46
+ "scope": "completion_total"
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ An excessive budget returns HTTP 413 `USAGE_OUTPUT_LIMIT`; `feedback.output_limit` contains `actual`, `allowed`, `parameter` and known `scope`. These are safe scalars, excluding messages, full requests, provider configuration and credentials. Both failures precede admission and vendor dispatch; Core does not clamp, retry or charge them.
53
+
54
+ Existing `thinking.budget_tokens`, `reasoning_effort` and similar options pass through. Core does not invent or add separate reasoning budgets. Reported reasoning Tokens are subsets, not another completion debit. A transport-complete exchange does not guarantee an untruncated answer.
55
+
56
+ ## Legacy services and original requests
57
+
58
+ When the group is absent, legacy behavior remains: no separate default/scope/vendor maximum is invented; an omitted output key uses the existing ceiling as default `max_tokens`, and either historical output key can still be selected. Editing only a label or unrelated field must not enable the policy silently. A legacy image service's `maxOutputTokens` residue is not interpreted as an image Token limit; new chat policy fields are rejected for image tools.
59
+
60
+ Already admitted operations are resolved by original ID and request hash before consulting current policy. Policy changes never rewrite their service snapshot, intent or metering, and never redispatch them. Keep the original operation/digest and recovery flow.
61
+
62
+ A locally prepared but unadmitted request has no preserved old service snapshot. Enabling a policy may reject its original parameter. Refresh discovery, explain the change and explicitly prepare a new operation. Never rewrite the old intent, submit changed content under its ID or mistake a parameter rejection for a retryable network error.
63
+
64
+ Clients consume default and ceiling separately and construct new requests using the descriptor. Do not hardcode all services back to 8192 or treat a default as the maximum. SDK helpers parse descriptors and construct new options; saved prepared requests do not pass through a rewriting helper. Deploying the contract does not reconfigure old services. Production configuration and real-provider long-output acceptance are separate actions.
65
+
66
+ ## Local verification
67
+
68
+ - `node --import tsx --test src/modules/usage/output-budget.test.ts` covers group validation, legacy discovery, bounds, parameter scope, scalar feedback, actual synthetic HTTP bodies and reasoning usage.
69
+ - With the dedicated local synthetic MySQL on `127.0.0.1:16307`, run `BAILING_USAGE_TEST_MYSQL=1 node --import tsx --test src/modules/usage/output-budget.mysql.test.ts`. Each case creates and removes random databases and checks persistence, dispatch, admitted recovery, unadmitted rejection and single billing. It does not read deployment secrets or call real providers.
@@ -0,0 +1,69 @@
1
+ # 模型输出预算契约
2
+
3
+ [English](MODEL_OUTPUT_BUDGET.en.md)
4
+
5
+ AIaaS 模型服务将“新请求默认使用多少 token”和“服务最多允许请求多少 token”分开配置。适用范围为 `/usage/v1/model/models` 与对话模型网关,不改变嵌入聊天的知识库装配、图片模型工具、计量或请求恢复机制。
6
+
7
+ ## 服务配置与目录
8
+
9
+ | 后台配置 | 模型目录 | 含义 |
10
+ | --- | --- | --- |
11
+ | `maxOutputTokens` | `max_output_tokens` | 运营设置的服务请求上限,正整数,平台当前允许 1–131072;不是供应商模型能力声明 |
12
+ | `defaultOutputTokens` | `default_output_tokens` | 新请求未指定输出预算时使用的默认值,正整数且不超过服务上限 |
13
+ | `outputTokenParameter` | `output_token_parameter` | 当前供应商路由实际采用的参数:`max_tokens` 或 `max_completion_tokens` |
14
+ | `outputBudgetScope` | `output_budget_scope` | `completion_total` 表示思考与答案共享总预算;`final_answer` 表示只限制最终答案 |
15
+ | `modelMaxOutputTokens` | `model_max_output_tokens` | 可选,已核实的供应商对当前参数和 scope 支持的最大值;未知时省略,服务上限不能超过它 |
16
+
17
+ 默认值、参数、scope 必须一起显式配置,不能只填一部分。本方契约限定 `max_completion_tokens` 必须使用 `completion_total`;`max_tokens` 可配两种 scope,具体取决于实际供应商路由。元数据不负责探测或保证供应商能力,不能按模型名称猜测。更换模型、供应商凭据或路由后,应重新核对参数、scope 和供应商最大值。
18
+
19
+ `modelMaxOutputTokens` 只允许与显式策略一起提供,平台接受其正整数范围为 1–10000000;即使供应商模型能力更高,也不会放宽 `maxOutputTokens` 的平台有界限制。上下文窗口、输出预算、输入字节限制和超时是不同约束,仍独立生效。目录不会透露凭据别名、providerScope、供应商 URL 或请求内容。
20
+
21
+ 显式配置示例(仅展示字段语义,不是任何真实模型的推荐值):
22
+
23
+ ```json
24
+ {
25
+ "maxOutputTokens": 65536,
26
+ "defaultOutputTokens": 32768,
27
+ "outputTokenParameter": "max_completion_tokens",
28
+ "outputBudgetScope": "completion_total",
29
+ "modelMaxOutputTokens": 131072
30
+ }
31
+ ```
32
+
33
+ 对应目录包含 `max_output_tokens: 65536`、`default_output_tokens: 32768`、`output_token_parameter: "max_completion_tokens"`、`output_budget_scope: "completion_total"`、`model_max_output_tokens: 131072`。`provider_options` 只声明所选输出参数,其他既有可透传选项保持原样。网关 capabilities 通过 `output_budget` 下的 `bailing.model-output-budget.v1` 声明支持该契约。
34
+
35
+ ## 请求派发与拒绝
36
+
37
+ 显式策略下,省略输出参数会使用独立默认值和已配置参数;使用匹配参数时允许请求到服务上限,精确上限可通过,超过 1 token 仍拒绝。客户端不能同时传两种输出参数。使用另一种参数会得到 HTTP 400 `USAGE_OUTPUT_PARAMETER_MISMATCH`,不会被静默重命名,因为两种字段可能具有不同预算含义。
38
+
39
+ ```json
40
+ {
41
+ "error": "USAGE_OUTPUT_PARAMETER_MISMATCH",
42
+ "dispatch": "not_dispatched",
43
+ "feedback": {
44
+ "output_budget": {
45
+ "expected_parameter": "max_completion_tokens",
46
+ "scope": "completion_total"
47
+ }
48
+ }
49
+ }
50
+ ```
51
+
52
+ 超过服务上限返回 HTTP 413 `USAGE_OUTPUT_LIMIT`,`feedback.output_limit` 包含 `actual`、`allowed`、`parameter` 以及已知时的 `scope`。这些都是非敏感标量,不包含消息、完整请求、供应商配置或凭据。两类拒绝均发生在本次 operation 受理和供应商派发之前;不会自动缩减预算、重试或收费。
53
+
54
+ `thinking.budget_tokens`、`reasoning_effort` 等既有参数继续透传,Core 不擅自分割或叠加思考预算。供应商 usage 中的 reasoning token 子集不重复加到 completion token 上计费;传输完成也不保证答案未被供应商 token 限制截断。
55
+
56
+ ## 旧服务与原请求
57
+
58
+ 三项策略均未配置的旧服务保持既有行为:目录不产生独立默认、scope 或供应商最大值;未显式传输出参数时继续以服务上限作为默认 `max_tokens`,原来允许的两种输出字段仍可二选一。后台只修改名称或其他字段不应悄悄启用新策略。旧图片工具配置中的 `maxOutputTokens` 残留不会被解释为图片 token 上限,新增对话预算字段不允许写入图片工具。
59
+
60
+ 已受理的 operation 通过原 ID 和原请求 hash 核对并恢复,优先于当前模型策略检查;后续策略变化不会改写其 service snapshot、intent、计量或再次派发。客户端保留原 operation、digest 和恢复流程。
61
+
62
+ 已经在客户端准备、但尚未被 Core 受理的旧请求不享有旧配置快照。启用新策略后,原参数可能被明确拒绝。此时应刷新目录、说明变化并显式准备新 operation;不能改写原 intent、复用原 operation 内容重试,或将参数错误当作网络错误自动重发。
63
+
64
+ 客户端应分别消费默认预算和上限,并按目录字段构造新请求,不能把所有服务重新写死为 8192,也不能把默认预算当作允许的最大值。SDK 提供解析和新请求构造帮助函数;现存 prepared 请求不经过此构造函数重写。部署本契约不自动更改旧服务配置,生产预算调整和真实模型长输出验收需分别完成。
65
+
66
+ ## 本地验证
67
+
68
+ - `node --import tsx --test src/modules/usage/output-budget.test.ts`:成组校验、旧目录兼容、默认/上限边界、参数语义、非敏感回执、本地 HTTP provider 实际请求以及 reasoning 计量。
69
+ - 有专用合成本地 MySQL(`127.0.0.1:16307`)时:`BAILING_USAGE_TEST_MYSQL=1 node --import tsx --test src/modules/usage/output-budget.mysql.test.ts`。每个用例只创建并移除随机测试数据库;验证持久化、目录到派发、已受理原请求恢复、未受理旧 intent 拒绝及不重复收费。不读取真实部署配置或调用真实供应商。
@@ -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 提交的保障仍依赖底层存储;不覆盖磁盘损坏、任意旧扩展实现或未经验证的外部副作用。