bailinghub 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +1 -0
- package/.gitignore +1 -0
- package/.npmignore +1 -0
- package/Dockerfile +1 -0
- package/README.en.md +6 -6
- package/README.md +6 -6
- package/SECURITY.md +3 -3
- package/THIRD_PARTY_NOTICES.md +7 -7
- package/docker-compose.images.yml +2 -2
- package/docs/CHANGELOG.en.md +23 -1
- package/docs/CHANGELOG.md +23 -1
- package/docs/CORE_RELIABILITY.en.md +22 -2
- package/docs/CORE_RELIABILITY.md +22 -2
- package/docs/DOCX_DEPENDENCY.en.md +26 -0
- package/docs/DOCX_DEPENDENCY.md +26 -0
- package/docs/IMPLEMENTATION_STATUS.en.md +23 -15
- package/docs/IMPLEMENTATION_STATUS.md +23 -15
- package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
- package/docs/INDEPENDENT_VALIDATION.md +4 -4
- package/docs/NOTIFICATION_DURABILITY.en.md +47 -0
- package/docs/NOTIFICATION_DURABILITY.md +47 -0
- package/docs/OPERATIONS.en.md +17 -0
- package/docs/OPERATIONS.md +16 -0
- package/docs/README.en.md +7 -1
- package/docs/README.md +7 -1
- package/docs/RELEASE_NOTES_NEXT.en.md +3 -3
- package/docs/RELEASE_NOTES_NEXT.md +3 -3
- package/docs/RELEASE_NOTES_v0.9.3.en.md +51 -0
- package/docs/RELEASE_NOTES_v0.9.3.md +51 -0
- package/docs/RELEASE_NOTES_v0.9.4.en.md +42 -0
- package/docs/RELEASE_NOTES_v0.9.4.md +42 -0
- package/docs/TOOLS_DESIGN.md +1 -0
- package/docs/UPGRADE_v0.9.3.en.md +63 -0
- package/docs/UPGRADE_v0.9.3.md +63 -0
- package/docs/UPGRADE_v0.9.4.en.md +57 -0
- package/docs/UPGRADE_v0.9.4.md +57 -0
- package/node_modules/@xmldom/xmldom/CHANGELOG.md +533 -0
- package/node_modules/@xmldom/xmldom/LICENSE +8 -0
- package/node_modules/@xmldom/xmldom/SECURITY.md +50 -0
- package/node_modules/@xmldom/xmldom/index.d.ts +96 -0
- package/node_modules/@xmldom/xmldom/lib/.eslintrc.yml +2 -0
- package/node_modules/@xmldom/xmldom/lib/conventions.js +214 -0
- package/node_modules/@xmldom/xmldom/lib/dom-parser.js +322 -0
- package/node_modules/@xmldom/xmldom/lib/dom.js +2266 -0
- package/node_modules/@xmldom/xmldom/lib/entities.js +2166 -0
- package/node_modules/@xmldom/xmldom/lib/index.js +4 -0
- package/node_modules/@xmldom/xmldom/lib/sax.js +683 -0
- package/node_modules/@xmldom/xmldom/package.json +75 -0
- package/node_modules/@xmldom/xmldom/readme.md +356 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/bluebird/LICENSE +21 -0
- package/node_modules/bluebird/README.md +51 -0
- package/node_modules/bluebird/changelog.md +1 -0
- package/node_modules/bluebird/js/browser/bluebird.core.js +3739 -0
- package/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
- package/node_modules/bluebird/js/browser/bluebird.js +5581 -0
- package/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
- package/node_modules/bluebird/js/release/any.js +21 -0
- package/node_modules/bluebird/js/release/assert.js +55 -0
- package/node_modules/bluebird/js/release/async.js +161 -0
- package/node_modules/bluebird/js/release/bind.js +67 -0
- package/node_modules/bluebird/js/release/bluebird.js +11 -0
- package/node_modules/bluebird/js/release/call_get.js +123 -0
- package/node_modules/bluebird/js/release/cancel.js +129 -0
- package/node_modules/bluebird/js/release/catch_filter.js +42 -0
- package/node_modules/bluebird/js/release/context.js +69 -0
- package/node_modules/bluebird/js/release/debuggability.js +916 -0
- package/node_modules/bluebird/js/release/direct_resolve.js +46 -0
- package/node_modules/bluebird/js/release/each.js +30 -0
- package/node_modules/bluebird/js/release/errors.js +116 -0
- package/node_modules/bluebird/js/release/es5.js +80 -0
- package/node_modules/bluebird/js/release/filter.js +12 -0
- package/node_modules/bluebird/js/release/finally.js +111 -0
- package/node_modules/bluebird/js/release/generators.js +223 -0
- package/node_modules/bluebird/js/release/join.js +168 -0
- package/node_modules/bluebird/js/release/map.js +168 -0
- package/node_modules/bluebird/js/release/method.js +55 -0
- package/node_modules/bluebird/js/release/nodeback.js +51 -0
- package/node_modules/bluebird/js/release/nodeify.js +58 -0
- package/node_modules/bluebird/js/release/promise.js +773 -0
- package/node_modules/bluebird/js/release/promise_array.js +184 -0
- package/node_modules/bluebird/js/release/promisify.js +314 -0
- package/node_modules/bluebird/js/release/props.js +118 -0
- package/node_modules/bluebird/js/release/queue.js +73 -0
- package/node_modules/bluebird/js/release/race.js +49 -0
- package/node_modules/bluebird/js/release/reduce.js +172 -0
- package/node_modules/bluebird/js/release/schedule.js +61 -0
- package/node_modules/bluebird/js/release/settle.js +43 -0
- package/node_modules/bluebird/js/release/some.js +148 -0
- package/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
- package/node_modules/bluebird/js/release/thenables.js +86 -0
- package/node_modules/bluebird/js/release/timers.js +93 -0
- package/node_modules/bluebird/js/release/using.js +226 -0
- package/node_modules/bluebird/js/release/util.js +379 -0
- package/node_modules/bluebird/package.json +76 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +38 -0
- package/node_modules/dingbat-to-unicode/README.md +79 -0
- package/node_modules/dingbat-to-unicode/dist/dingbats.d.ts +8 -0
- package/node_modules/dingbat-to-unicode/dist/dingbats.js +1066 -0
- package/node_modules/dingbat-to-unicode/dist/index.d.ts +7 -0
- package/node_modules/dingbat-to-unicode/dist/index.js +44 -0
- package/node_modules/dingbat-to-unicode/package.json +39 -0
- package/node_modules/duck/LICENSE +22 -0
- package/node_modules/duck/README.md +184 -0
- package/node_modules/duck/index.js +267 -0
- package/node_modules/duck/makefile +4 -0
- package/node_modules/duck/package.json +23 -0
- package/node_modules/duck/test/duck.test.js +160 -0
- package/node_modules/immediate/LICENSE.txt +20 -0
- package/node_modules/immediate/README.md +93 -0
- package/node_modules/immediate/dist/immediate.js +75 -0
- package/node_modules/immediate/dist/immediate.min.js +1 -0
- package/node_modules/immediate/lib/browser.js +69 -0
- package/node_modules/immediate/lib/index.js +73 -0
- package/node_modules/immediate/package.json +42 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +60 -0
- package/node_modules/isarray/component.json +19 -0
- package/node_modules/isarray/index.js +5 -0
- package/node_modules/isarray/package.json +45 -0
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/jszip/.codeclimate.yml +16 -0
- package/node_modules/jszip/.editorconfig +8 -0
- package/node_modules/jszip/.eslintrc.js +43 -0
- package/node_modules/jszip/.github/workflows/pr.yaml +58 -0
- package/node_modules/jszip/.jekyll-metadata +0 -0
- package/node_modules/jszip/.travis.yml +17 -0
- package/node_modules/jszip/CHANGES.md +204 -0
- package/node_modules/jszip/LICENSE.markdown +651 -0
- package/node_modules/jszip/README.markdown +33 -0
- package/node_modules/jszip/deps.js +37 -0
- package/node_modules/jszip/dist/jszip.js +11577 -0
- package/node_modules/jszip/dist/jszip.min.js +13 -0
- package/node_modules/jszip/graph.svg +601 -0
- package/node_modules/jszip/index.d.ts +330 -0
- package/node_modules/jszip/lib/base64.js +106 -0
- package/node_modules/jszip/lib/compressedObject.js +74 -0
- package/node_modules/jszip/lib/compressions.js +14 -0
- package/node_modules/jszip/lib/crc32.js +77 -0
- package/node_modules/jszip/lib/defaults.js +11 -0
- package/node_modules/jszip/lib/external.js +18 -0
- package/node_modules/jszip/lib/flate.js +85 -0
- package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
- package/node_modules/jszip/lib/generate/index.js +57 -0
- package/node_modules/jszip/lib/index.js +55 -0
- package/node_modules/jszip/lib/license_header.js +11 -0
- package/node_modules/jszip/lib/load.js +88 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
- package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
- package/node_modules/jszip/lib/nodejsUtils.js +57 -0
- package/node_modules/jszip/lib/object.js +384 -0
- package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
- package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
- package/node_modules/jszip/lib/reader/DataReader.js +116 -0
- package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
- package/node_modules/jszip/lib/reader/StringReader.js +38 -0
- package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
- package/node_modules/jszip/lib/reader/readerFor.js +28 -0
- package/node_modules/jszip/lib/signature.js +7 -0
- package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
- package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
- package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
- package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
- package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
- package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
- package/node_modules/jszip/lib/support.js +38 -0
- package/node_modules/jszip/lib/utf8.js +275 -0
- package/node_modules/jszip/lib/utils.js +501 -0
- package/node_modules/jszip/lib/zipEntries.js +261 -0
- package/node_modules/jszip/lib/zipEntry.js +293 -0
- package/node_modules/jszip/lib/zipObject.js +133 -0
- package/node_modules/jszip/package.json +67 -0
- package/node_modules/jszip/sponsors.md +21 -0
- package/node_modules/jszip/tsconfig.json +101 -0
- package/node_modules/jszip/vendor/FileSaver.js +247 -0
- package/node_modules/lie/README.md +62 -0
- package/node_modules/lie/dist/lie.js +350 -0
- package/node_modules/lie/dist/lie.min.js +1 -0
- package/node_modules/lie/dist/lie.polyfill.js +358 -0
- package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
- package/node_modules/lie/lib/browser.js +273 -0
- package/node_modules/lie/lib/index.js +298 -0
- package/node_modules/lie/license.md +7 -0
- package/node_modules/lie/lie.d.ts +244 -0
- package/node_modules/lie/package.json +69 -0
- package/node_modules/lie/polyfill.js +4 -0
- package/node_modules/lop/LICENSE +22 -0
- package/node_modules/lop/README.md +248 -0
- package/node_modules/lop/index.js +18 -0
- package/node_modules/lop/lib/StringSource.js +53 -0
- package/node_modules/lop/lib/Token.js +7 -0
- package/node_modules/lop/lib/TokenIterator.js +28 -0
- package/node_modules/lop/lib/bottom-up.js +128 -0
- package/node_modules/lop/lib/errors.js +22 -0
- package/node_modules/lop/lib/lazy-iterators.js +81 -0
- package/node_modules/lop/lib/parser.js +11 -0
- package/node_modules/lop/lib/parsing-results.js +103 -0
- package/node_modules/lop/lib/regex-tokeniser.js +70 -0
- package/node_modules/lop/lib/rules.js +313 -0
- package/node_modules/lop/lib/testing.js +69 -0
- package/node_modules/lop/makefile +4 -0
- package/node_modules/lop/package.json +24 -0
- package/node_modules/lop/test/StringSource.test.js +21 -0
- package/node_modules/lop/test/TokenIterator.test.js +17 -0
- package/node_modules/lop/test/Tokeniser.js +50 -0
- package/node_modules/lop/test/Tokeniser.test.js +38 -0
- package/node_modules/lop/test/bottom-up.test.js +187 -0
- package/node_modules/lop/test/errors.test.js +36 -0
- package/node_modules/lop/test/lazy-iterators.test.js +53 -0
- package/node_modules/lop/test/lop.test.js +27 -0
- package/node_modules/lop/test/regex-tokeniser.test.js +114 -0
- package/node_modules/lop/test/results.test.js +8 -0
- package/node_modules/lop/test/rules.test.js +617 -0
- package/node_modules/mammoth/LICENSE +22 -0
- package/node_modules/mammoth/SOURCE.json +57 -0
- package/node_modules/mammoth/browser/docx/files.js +14 -0
- package/node_modules/mammoth/browser/unzip.js +12 -0
- package/node_modules/mammoth/lib/document-to-html.js +469 -0
- package/node_modules/mammoth/lib/documents.js +254 -0
- package/node_modules/mammoth/lib/docx/body-reader.js +798 -0
- package/node_modules/mammoth/lib/docx/comments-reader.js +31 -0
- package/node_modules/mammoth/lib/docx/content-types-reader.js +58 -0
- package/node_modules/mammoth/lib/docx/document-xml-reader.js +30 -0
- package/node_modules/mammoth/lib/docx/docx-reader.js +226 -0
- package/node_modules/mammoth/lib/docx/files.js +80 -0
- package/node_modules/mammoth/lib/docx/notes-reader.js +28 -0
- package/node_modules/mammoth/lib/docx/numbering-xml.js +111 -0
- package/node_modules/mammoth/lib/docx/office-xml-reader.js +73 -0
- package/node_modules/mammoth/lib/docx/relationships-reader.js +43 -0
- package/node_modules/mammoth/lib/docx/style-map.js +75 -0
- package/node_modules/mammoth/lib/docx/styles-reader.js +90 -0
- package/node_modules/mammoth/lib/docx/uris.js +21 -0
- package/node_modules/mammoth/lib/html/ast.js +51 -0
- package/node_modules/mammoth/lib/html/index.js +41 -0
- package/node_modules/mammoth/lib/html/simplify.js +88 -0
- package/node_modules/mammoth/lib/images.js +31 -0
- package/node_modules/mammoth/lib/index.d.ts +86 -0
- package/node_modules/mammoth/lib/index.js +111 -0
- package/node_modules/mammoth/lib/options-reader.js +107 -0
- package/node_modules/mammoth/lib/promises.js +42 -0
- package/node_modules/mammoth/lib/raw-text.js +14 -0
- package/node_modules/mammoth/lib/results.js +72 -0
- package/node_modules/mammoth/lib/style-reader.js +365 -0
- package/node_modules/mammoth/lib/styles/document-matchers.js +100 -0
- package/node_modules/mammoth/lib/styles/html-paths.js +75 -0
- package/node_modules/mammoth/lib/styles/parser/tokeniser.js +30 -0
- package/node_modules/mammoth/lib/transforms.js +62 -0
- package/node_modules/mammoth/lib/underline.js +11 -0
- package/node_modules/mammoth/lib/unzip.js +20 -0
- package/node_modules/mammoth/lib/writers/html-writer.js +159 -0
- package/node_modules/mammoth/lib/writers/index.js +14 -0
- package/node_modules/mammoth/lib/writers/markdown-writer.js +163 -0
- package/node_modules/mammoth/lib/xml/index.js +8 -0
- package/node_modules/mammoth/lib/xml/nodes.js +70 -0
- package/node_modules/mammoth/lib/xml/reader.js +69 -0
- package/node_modules/mammoth/lib/xml/writer.js +61 -0
- package/node_modules/mammoth/lib/xml/xmldom.js +23 -0
- package/node_modules/mammoth/lib/zipfile.js +72 -0
- package/node_modules/mammoth/package.json +39 -0
- package/node_modules/mammoth/upstream-package.json +64 -0
- package/node_modules/option/.npmignore +1 -0
- package/node_modules/option/LICENSE +22 -0
- package/node_modules/option/README.md +101 -0
- package/node_modules/option/index.js +88 -0
- package/node_modules/option/package.json +23 -0
- package/node_modules/option/test/options.test.js +174 -0
- package/node_modules/pako/CHANGELOG.md +164 -0
- package/node_modules/pako/LICENSE +21 -0
- package/node_modules/pako/README.md +191 -0
- package/node_modules/pako/dist/pako.js +6818 -0
- package/node_modules/pako/dist/pako.min.js +1 -0
- package/node_modules/pako/dist/pako_deflate.js +3997 -0
- package/node_modules/pako/dist/pako_deflate.min.js +1 -0
- package/node_modules/pako/dist/pako_inflate.js +3300 -0
- package/node_modules/pako/dist/pako_inflate.min.js +1 -0
- package/node_modules/pako/index.js +14 -0
- package/node_modules/pako/lib/deflate.js +400 -0
- package/node_modules/pako/lib/inflate.js +423 -0
- package/node_modules/pako/lib/utils/common.js +105 -0
- package/node_modules/pako/lib/utils/strings.js +187 -0
- package/node_modules/pako/lib/zlib/README +59 -0
- package/node_modules/pako/lib/zlib/adler32.js +51 -0
- package/node_modules/pako/lib/zlib/constants.js +68 -0
- package/node_modules/pako/lib/zlib/crc32.js +59 -0
- package/node_modules/pako/lib/zlib/deflate.js +1874 -0
- package/node_modules/pako/lib/zlib/gzheader.js +58 -0
- package/node_modules/pako/lib/zlib/inffast.js +345 -0
- package/node_modules/pako/lib/zlib/inflate.js +1556 -0
- package/node_modules/pako/lib/zlib/inftrees.js +343 -0
- package/node_modules/pako/lib/zlib/messages.js +32 -0
- package/node_modules/pako/lib/zlib/trees.js +1222 -0
- package/node_modules/pako/lib/zlib/zstream.js +47 -0
- package/node_modules/pako/package.json +44 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +43 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/process-nextick-args/index.js +45 -0
- package/node_modules/process-nextick-args/license.md +19 -0
- package/node_modules/process-nextick-args/package.json +25 -0
- package/node_modules/process-nextick-args/readme.md +18 -0
- package/node_modules/readable-stream/.travis.yml +34 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +58 -0
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/node_modules/readable-stream/duplex-browser.js +1 -0
- package/node_modules/readable-stream/duplex.js +1 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +52 -0
- package/node_modules/readable-stream/passthrough.js +1 -0
- package/node_modules/readable-stream/readable-browser.js +7 -0
- package/node_modules/readable-stream/readable.js +19 -0
- package/node_modules/readable-stream/transform.js +1 -0
- package/node_modules/readable-stream/writable-browser.js +1 -0
- package/node_modules/readable-stream/writable.js +8 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +62 -0
- package/node_modules/safe-buffer/package.json +37 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +30 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/string_decoder/.travis.yml +50 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +31 -0
- package/node_modules/underscore/LICENSE +22 -0
- package/node_modules/underscore/README.md +34 -0
- package/node_modules/underscore/amd/_baseCreate.js +21 -0
- package/node_modules/underscore/amd/_baseIteratee.js +15 -0
- package/node_modules/underscore/amd/_cb.js +12 -0
- package/node_modules/underscore/amd/_chainResult.js +10 -0
- package/node_modules/underscore/amd/_collectNonEnumProps.js +42 -0
- package/node_modules/underscore/amd/_createAssigner.js +24 -0
- package/node_modules/underscore/amd/_createEscaper.js +21 -0
- package/node_modules/underscore/amd/_createIndexFinder.js +30 -0
- package/node_modules/underscore/amd/_createPredicateIndexFinder.js +18 -0
- package/node_modules/underscore/amd/_createReduce.js +30 -0
- package/node_modules/underscore/amd/_createSizePropertyCheck.js +13 -0
- package/node_modules/underscore/amd/_deepGet.js +15 -0
- package/node_modules/underscore/amd/_escapeMap.js +15 -0
- package/node_modules/underscore/amd/_executeBound.js +16 -0
- package/node_modules/underscore/amd/_flatten.js +32 -0
- package/node_modules/underscore/amd/_getByteLength.js +8 -0
- package/node_modules/underscore/amd/_getLength.js +8 -0
- package/node_modules/underscore/amd/_group.js +18 -0
- package/node_modules/underscore/amd/_has.js +10 -0
- package/node_modules/underscore/amd/_hasObjectTag.js +7 -0
- package/node_modules/underscore/amd/_isArrayLike.js +11 -0
- package/node_modules/underscore/amd/_isBufferLike.js +9 -0
- package/node_modules/underscore/amd/_keyInObj.js +11 -0
- package/node_modules/underscore/amd/_methodFingerprint.js +44 -0
- package/node_modules/underscore/amd/_optimizeCb.js +27 -0
- package/node_modules/underscore/amd/_setup.js +70 -0
- package/node_modules/underscore/amd/_shallowProperty.js +12 -0
- package/node_modules/underscore/amd/_stringTagBug.js +19 -0
- package/node_modules/underscore/amd/_tagTester.js +13 -0
- package/node_modules/underscore/amd/_toBufferView.js +15 -0
- package/node_modules/underscore/amd/_toPath.js +11 -0
- package/node_modules/underscore/amd/_unescapeMap.js +8 -0
- package/node_modules/underscore/amd/after.js +14 -0
- package/node_modules/underscore/amd/allKeys.js +15 -0
- package/node_modules/underscore/amd/before.js +18 -0
- package/node_modules/underscore/amd/bind.js +15 -0
- package/node_modules/underscore/amd/bindAll.js +19 -0
- package/node_modules/underscore/amd/chain.js +12 -0
- package/node_modules/underscore/amd/chunk.js +17 -0
- package/node_modules/underscore/amd/clone.js +11 -0
- package/node_modules/underscore/amd/compact.js +10 -0
- package/node_modules/underscore/amd/compose.js +18 -0
- package/node_modules/underscore/amd/constant.js +12 -0
- package/node_modules/underscore/amd/contains.js +12 -0
- package/node_modules/underscore/amd/countBy.js +12 -0
- package/node_modules/underscore/amd/create.js +14 -0
- package/node_modules/underscore/amd/debounce.js +43 -0
- package/node_modules/underscore/amd/defaults.js +8 -0
- package/node_modules/underscore/amd/defer.js +9 -0
- package/node_modules/underscore/amd/delay.js +13 -0
- package/node_modules/underscore/amd/difference.js +14 -0
- package/node_modules/underscore/amd/each.js +25 -0
- package/node_modules/underscore/amd/escape.js +8 -0
- package/node_modules/underscore/amd/every.js +17 -0
- package/node_modules/underscore/amd/extend.js +8 -0
- package/node_modules/underscore/amd/extendOwn.js +10 -0
- package/node_modules/underscore/amd/filter.js +15 -0
- package/node_modules/underscore/amd/find.js +12 -0
- package/node_modules/underscore/amd/findIndex.js +8 -0
- package/node_modules/underscore/amd/findKey.js +15 -0
- package/node_modules/underscore/amd/findLastIndex.js +8 -0
- package/node_modules/underscore/amd/findWhere.js +11 -0
- package/node_modules/underscore/amd/first.js +13 -0
- package/node_modules/underscore/amd/flatten.js +11 -0
- package/node_modules/underscore/amd/functions.js +14 -0
- package/node_modules/underscore/amd/get.js +14 -0
- package/node_modules/underscore/amd/groupBy.js +11 -0
- package/node_modules/underscore/amd/has.js +19 -0
- package/node_modules/underscore/amd/identity.js +10 -0
- package/node_modules/underscore/amd/index-default.js +12 -0
- package/node_modules/underscore/amd/index.js +154 -0
- package/node_modules/underscore/amd/indexBy.js +11 -0
- package/node_modules/underscore/amd/indexOf.js +11 -0
- package/node_modules/underscore/amd/initial.js +12 -0
- package/node_modules/underscore/amd/intersection.js +22 -0
- package/node_modules/underscore/amd/invert.js +15 -0
- package/node_modules/underscore/amd/invoke.js +28 -0
- package/node_modules/underscore/amd/isArguments.js +19 -0
- package/node_modules/underscore/amd/isArray.js +9 -0
- package/node_modules/underscore/amd/isArrayBuffer.js +7 -0
- package/node_modules/underscore/amd/isBoolean.js +10 -0
- package/node_modules/underscore/amd/isDataView.js +17 -0
- package/node_modules/underscore/amd/isDate.js +7 -0
- package/node_modules/underscore/amd/isElement.js +10 -0
- package/node_modules/underscore/amd/isEmpty.js +18 -0
- package/node_modules/underscore/amd/isEqual.js +133 -0
- package/node_modules/underscore/amd/isError.js +7 -0
- package/node_modules/underscore/amd/isFinite.js +10 -0
- package/node_modules/underscore/amd/isFunction.js +18 -0
- package/node_modules/underscore/amd/isMap.js +7 -0
- package/node_modules/underscore/amd/isMatch.js +17 -0
- package/node_modules/underscore/amd/isNaN.js +10 -0
- package/node_modules/underscore/amd/isNull.js +10 -0
- package/node_modules/underscore/amd/isNumber.js +7 -0
- package/node_modules/underscore/amd/isObject.js +11 -0
- package/node_modules/underscore/amd/isRegExp.js +7 -0
- package/node_modules/underscore/amd/isSet.js +7 -0
- package/node_modules/underscore/amd/isString.js +7 -0
- package/node_modules/underscore/amd/isSymbol.js +7 -0
- package/node_modules/underscore/amd/isTypedArray.js +16 -0
- package/node_modules/underscore/amd/isUndefined.js +10 -0
- package/node_modules/underscore/amd/isWeakMap.js +7 -0
- package/node_modules/underscore/amd/isWeakSet.js +7 -0
- package/node_modules/underscore/amd/iteratee.js +13 -0
- package/node_modules/underscore/amd/keys.js +17 -0
- package/node_modules/underscore/amd/last.js +13 -0
- package/node_modules/underscore/amd/lastIndexOf.js +9 -0
- package/node_modules/underscore/amd/map.js +18 -0
- package/node_modules/underscore/amd/mapObject.js +19 -0
- package/node_modules/underscore/amd/matcher.js +14 -0
- package/node_modules/underscore/amd/max.js +30 -0
- package/node_modules/underscore/amd/memoize.js +17 -0
- package/node_modules/underscore/amd/min.js +30 -0
- package/node_modules/underscore/amd/mixin.js +18 -0
- package/node_modules/underscore/amd/negate.js +12 -0
- package/node_modules/underscore/amd/noop.js +8 -0
- package/node_modules/underscore/amd/now.js +10 -0
- package/node_modules/underscore/amd/object.js +20 -0
- package/node_modules/underscore/amd/omit.js +20 -0
- package/node_modules/underscore/amd/once.js +9 -0
- package/node_modules/underscore/amd/pairs.js +17 -0
- package/node_modules/underscore/amd/partial.js +25 -0
- package/node_modules/underscore/amd/partition.js +11 -0
- package/node_modules/underscore/amd/pick.js +25 -0
- package/node_modules/underscore/amd/pipe.js +13 -0
- package/node_modules/underscore/amd/pluck.js +10 -0
- package/node_modules/underscore/amd/property.js +14 -0
- package/node_modules/underscore/amd/propertyOf.js +13 -0
- package/node_modules/underscore/amd/random.js +14 -0
- package/node_modules/underscore/amd/range.js +27 -0
- package/node_modules/underscore/amd/reduce.js +9 -0
- package/node_modules/underscore/amd/reduceRight.js +8 -0
- package/node_modules/underscore/amd/reject.js +10 -0
- package/node_modules/underscore/amd/rest.js +12 -0
- package/node_modules/underscore/amd/restArguments.js +33 -0
- package/node_modules/underscore/amd/result.js +25 -0
- package/node_modules/underscore/amd/sample.js +27 -0
- package/node_modules/underscore/amd/shuffle.js +10 -0
- package/node_modules/underscore/amd/size.js +11 -0
- package/node_modules/underscore/amd/some.js +17 -0
- package/node_modules/underscore/amd/sortBy.js +26 -0
- package/node_modules/underscore/amd/sortedIndex.js +18 -0
- package/node_modules/underscore/amd/tap.js +13 -0
- package/node_modules/underscore/amd/template.js +103 -0
- package/node_modules/underscore/amd/templateSettings.js +13 -0
- package/node_modules/underscore/amd/throttle.js +51 -0
- package/node_modules/underscore/amd/times.js +13 -0
- package/node_modules/underscore/amd/toArray.js +18 -0
- package/node_modules/underscore/amd/toPath.js +12 -0
- package/node_modules/underscore/amd/underscore-array-methods.js +30 -0
- package/node_modules/underscore/amd/underscore.js +29 -0
- package/node_modules/underscore/amd/unescape.js +8 -0
- package/node_modules/underscore/amd/union.js +11 -0
- package/node_modules/underscore/amd/uniq.js +37 -0
- package/node_modules/underscore/amd/uniqueId.js +13 -0
- package/node_modules/underscore/amd/unzip.js +17 -0
- package/node_modules/underscore/amd/values.js +16 -0
- package/node_modules/underscore/amd/where.js +11 -0
- package/node_modules/underscore/amd/without.js +10 -0
- package/node_modules/underscore/amd/wrap.js +12 -0
- package/node_modules/underscore/amd/zip.js +9 -0
- package/node_modules/underscore/cjs/_baseCreate.js +20 -0
- package/node_modules/underscore/cjs/_baseIteratee.js +19 -0
- package/node_modules/underscore/cjs/_cb.js +12 -0
- package/node_modules/underscore/cjs/_chainResult.js +8 -0
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +42 -0
- package/node_modules/underscore/cjs/_createAssigner.js +20 -0
- package/node_modules/underscore/cjs/_createEscaper.js +19 -0
- package/node_modules/underscore/cjs/_createIndexFinder.js +30 -0
- package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +17 -0
- package/node_modules/underscore/cjs/_createReduce.js +30 -0
- package/node_modules/underscore/cjs/_createSizePropertyCheck.js +11 -0
- package/node_modules/underscore/cjs/_deepGet.js +11 -0
- package/node_modules/underscore/cjs/_escapeMap.js +11 -0
- package/node_modules/underscore/cjs/_executeBound.js +15 -0
- package/node_modules/underscore/cjs/_flatten.js +33 -0
- package/node_modules/underscore/cjs/_getByteLength.js +6 -0
- package/node_modules/underscore/cjs/_getLength.js +6 -0
- package/node_modules/underscore/cjs/_group.js +17 -0
- package/node_modules/underscore/cjs/_has.js +8 -0
- package/node_modules/underscore/cjs/_hasObjectTag.js +5 -0
- package/node_modules/underscore/cjs/_isArrayLike.js +10 -0
- package/node_modules/underscore/cjs/_isBufferLike.js +8 -0
- package/node_modules/underscore/cjs/_keyInObj.js +7 -0
- package/node_modules/underscore/cjs/_methodFingerprint.js +44 -0
- package/node_modules/underscore/cjs/_optimizeCb.js +23 -0
- package/node_modules/underscore/cjs/_setup.js +66 -0
- package/node_modules/underscore/cjs/_shallowProperty.js +8 -0
- package/node_modules/underscore/cjs/_stringTagBug.js +18 -0
- package/node_modules/underscore/cjs/_tagTester.js +11 -0
- package/node_modules/underscore/cjs/_toBufferView.js +13 -0
- package/node_modules/underscore/cjs/_toPath.js +10 -0
- package/node_modules/underscore/cjs/_unescapeMap.js +7 -0
- package/node_modules/underscore/cjs/after.js +10 -0
- package/node_modules/underscore/cjs/allKeys.js +15 -0
- package/node_modules/underscore/cjs/before.js +14 -0
- package/node_modules/underscore/cjs/bind.js +15 -0
- package/node_modules/underscore/cjs/bindAll.js +19 -0
- package/node_modules/underscore/cjs/chain.js +10 -0
- package/node_modules/underscore/cjs/chunk.js +15 -0
- package/node_modules/underscore/cjs/clone.js +11 -0
- package/node_modules/underscore/cjs/compact.js +8 -0
- package/node_modules/underscore/cjs/compose.js +14 -0
- package/node_modules/underscore/cjs/constant.js +8 -0
- package/node_modules/underscore/cjs/contains.js +12 -0
- package/node_modules/underscore/cjs/countBy.js +11 -0
- package/node_modules/underscore/cjs/create.js +13 -0
- package/node_modules/underscore/cjs/debounce.js +42 -0
- package/node_modules/underscore/cjs/defaults.js +7 -0
- package/node_modules/underscore/cjs/defer.js +9 -0
- package/node_modules/underscore/cjs/delay.js +11 -0
- package/node_modules/underscore/cjs/difference.js +15 -0
- package/node_modules/underscore/cjs/each.js +25 -0
- package/node_modules/underscore/cjs/escape.js +7 -0
- package/node_modules/underscore/cjs/every.js +17 -0
- package/node_modules/underscore/cjs/extend.js +7 -0
- package/node_modules/underscore/cjs/extendOwn.js +9 -0
- package/node_modules/underscore/cjs/filter.js +14 -0
- package/node_modules/underscore/cjs/find.js +12 -0
- package/node_modules/underscore/cjs/findIndex.js +6 -0
- package/node_modules/underscore/cjs/findKey.js +14 -0
- package/node_modules/underscore/cjs/findLastIndex.js +6 -0
- package/node_modules/underscore/cjs/findWhere.js +10 -0
- package/node_modules/underscore/cjs/first.js +11 -0
- package/node_modules/underscore/cjs/flatten.js +9 -0
- package/node_modules/underscore/cjs/functions.js +12 -0
- package/node_modules/underscore/cjs/get.js +14 -0
- package/node_modules/underscore/cjs/groupBy.js +10 -0
- package/node_modules/underscore/cjs/has.js +18 -0
- package/node_modules/underscore/cjs/identity.js +6 -0
- package/node_modules/underscore/cjs/index-default.js +11 -0
- package/node_modules/underscore/cjs/index.js +278 -0
- package/node_modules/underscore/cjs/indexBy.js +9 -0
- package/node_modules/underscore/cjs/indexOf.js +11 -0
- package/node_modules/underscore/cjs/initial.js +10 -0
- package/node_modules/underscore/cjs/intersection.js +21 -0
- package/node_modules/underscore/cjs/invert.js +13 -0
- package/node_modules/underscore/cjs/invoke.js +30 -0
- package/node_modules/underscore/cjs/isArguments.js +18 -0
- package/node_modules/underscore/cjs/isArray.js +8 -0
- package/node_modules/underscore/cjs/isArrayBuffer.js +5 -0
- package/node_modules/underscore/cjs/isBoolean.js +8 -0
- package/node_modules/underscore/cjs/isDataView.js +18 -0
- package/node_modules/underscore/cjs/isDate.js +5 -0
- package/node_modules/underscore/cjs/isElement.js +6 -0
- package/node_modules/underscore/cjs/isEmpty.js +20 -0
- package/node_modules/underscore/cjs/isEqual.js +140 -0
- package/node_modules/underscore/cjs/isError.js +5 -0
- package/node_modules/underscore/cjs/isFinite.js +9 -0
- package/node_modules/underscore/cjs/isFunction.js +17 -0
- package/node_modules/underscore/cjs/isMap.js +7 -0
- package/node_modules/underscore/cjs/isMatch.js +15 -0
- package/node_modules/underscore/cjs/isNaN.js +9 -0
- package/node_modules/underscore/cjs/isNull.js +6 -0
- package/node_modules/underscore/cjs/isNumber.js +5 -0
- package/node_modules/underscore/cjs/isObject.js +7 -0
- package/node_modules/underscore/cjs/isRegExp.js +5 -0
- package/node_modules/underscore/cjs/isSet.js +7 -0
- package/node_modules/underscore/cjs/isString.js +5 -0
- package/node_modules/underscore/cjs/isSymbol.js +5 -0
- package/node_modules/underscore/cjs/isTypedArray.js +17 -0
- package/node_modules/underscore/cjs/isUndefined.js +6 -0
- package/node_modules/underscore/cjs/isWeakMap.js +7 -0
- package/node_modules/underscore/cjs/isWeakSet.js +5 -0
- package/node_modules/underscore/cjs/iteratee.js +12 -0
- package/node_modules/underscore/cjs/keys.js +18 -0
- package/node_modules/underscore/cjs/last.js +11 -0
- package/node_modules/underscore/cjs/lastIndexOf.js +8 -0
- package/node_modules/underscore/cjs/map.js +18 -0
- package/node_modules/underscore/cjs/mapObject.js +18 -0
- package/node_modules/underscore/cjs/matcher.js +13 -0
- package/node_modules/underscore/cjs/max.js +31 -0
- package/node_modules/underscore/cjs/memoize.js +15 -0
- package/node_modules/underscore/cjs/min.js +31 -0
- package/node_modules/underscore/cjs/mixin.js +20 -0
- package/node_modules/underscore/cjs/negate.js +8 -0
- package/node_modules/underscore/cjs/noop.js +4 -0
- package/node_modules/underscore/cjs/now.js +6 -0
- package/node_modules/underscore/cjs/object.js +18 -0
- package/node_modules/underscore/cjs/omit.js +24 -0
- package/node_modules/underscore/cjs/once.js +8 -0
- package/node_modules/underscore/cjs/pairs.js +15 -0
- package/node_modules/underscore/cjs/partial.js +25 -0
- package/node_modules/underscore/cjs/partition.js +9 -0
- package/node_modules/underscore/cjs/pick.js +28 -0
- package/node_modules/underscore/cjs/pipe.js +12 -0
- package/node_modules/underscore/cjs/pluck.js +9 -0
- package/node_modules/underscore/cjs/property.js +13 -0
- package/node_modules/underscore/cjs/propertyOf.js +12 -0
- package/node_modules/underscore/cjs/random.js +10 -0
- package/node_modules/underscore/cjs/range.js +23 -0
- package/node_modules/underscore/cjs/reduce.js +7 -0
- package/node_modules/underscore/cjs/reduceRight.js +6 -0
- package/node_modules/underscore/cjs/reject.js +10 -0
- package/node_modules/underscore/cjs/rest.js +10 -0
- package/node_modules/underscore/cjs/restArguments.js +29 -0
- package/node_modules/underscore/cjs/result.js +24 -0
- package/node_modules/underscore/cjs/sample.js +29 -0
- package/node_modules/underscore/cjs/shuffle.js +8 -0
- package/node_modules/underscore/cjs/size.js +10 -0
- package/node_modules/underscore/cjs/some.js +17 -0
- package/node_modules/underscore/cjs/sortBy.js +26 -0
- package/node_modules/underscore/cjs/sortedIndex.js +17 -0
- package/node_modules/underscore/cjs/tap.js +9 -0
- package/node_modules/underscore/cjs/template.js +103 -0
- package/node_modules/underscore/cjs/templateSettings.js +11 -0
- package/node_modules/underscore/cjs/throttle.js +49 -0
- package/node_modules/underscore/cjs/times.js +11 -0
- package/node_modules/underscore/cjs/toArray.js +22 -0
- package/node_modules/underscore/cjs/toPath.js +11 -0
- package/node_modules/underscore/cjs/underscore-array-methods.js +31 -0
- package/node_modules/underscore/cjs/underscore.js +27 -0
- package/node_modules/underscore/cjs/unescape.js +7 -0
- package/node_modules/underscore/cjs/union.js +11 -0
- package/node_modules/underscore/cjs/uniq.js +38 -0
- package/node_modules/underscore/cjs/uniqueId.js +9 -0
- package/node_modules/underscore/cjs/unzip.js +17 -0
- package/node_modules/underscore/cjs/values.js +14 -0
- package/node_modules/underscore/cjs/where.js +10 -0
- package/node_modules/underscore/cjs/without.js +9 -0
- package/node_modules/underscore/cjs/wrap.js +10 -0
- package/node_modules/underscore/cjs/zip.js +8 -0
- package/node_modules/underscore/modules/.eslintrc +21 -0
- package/node_modules/underscore/modules/_baseCreate.js +18 -0
- package/node_modules/underscore/modules/_baseIteratee.js +17 -0
- package/node_modules/underscore/modules/_cb.js +10 -0
- package/node_modules/underscore/modules/_chainResult.js +6 -0
- package/node_modules/underscore/modules/_collectNonEnumProps.js +40 -0
- package/node_modules/underscore/modules/_createAssigner.js +18 -0
- package/node_modules/underscore/modules/_createEscaper.js +17 -0
- package/node_modules/underscore/modules/_createIndexFinder.js +28 -0
- package/node_modules/underscore/modules/_createPredicateIndexFinder.js +15 -0
- package/node_modules/underscore/modules/_createReduce.js +28 -0
- package/node_modules/underscore/modules/_createSizePropertyCheck.js +9 -0
- package/node_modules/underscore/modules/_deepGet.js +9 -0
- package/node_modules/underscore/modules/_escapeMap.js +9 -0
- package/node_modules/underscore/modules/_executeBound.js +13 -0
- package/node_modules/underscore/modules/_flatten.js +33 -0
- package/node_modules/underscore/modules/_getByteLength.js +4 -0
- package/node_modules/underscore/modules/_getLength.js +4 -0
- package/node_modules/underscore/modules/_group.js +15 -0
- package/node_modules/underscore/modules/_has.js +6 -0
- package/node_modules/underscore/modules/_hasObjectTag.js +3 -0
- package/node_modules/underscore/modules/_isArrayLike.js +8 -0
- package/node_modules/underscore/modules/_isBufferLike.js +6 -0
- package/node_modules/underscore/modules/_keyInObj.js +5 -0
- package/node_modules/underscore/modules/_methodFingerprint.js +37 -0
- package/node_modules/underscore/modules/_optimizeCb.js +21 -0
- package/node_modules/underscore/modules/_setup.js +43 -0
- package/node_modules/underscore/modules/_shallowProperty.js +6 -0
- package/node_modules/underscore/modules/_stringTagBug.js +13 -0
- package/node_modules/underscore/modules/_tagTester.js +9 -0
- package/node_modules/underscore/modules/_toBufferView.js +11 -0
- package/node_modules/underscore/modules/_toPath.js +8 -0
- package/node_modules/underscore/modules/_unescapeMap.js +5 -0
- package/node_modules/underscore/modules/after.js +8 -0
- package/node_modules/underscore/modules/allKeys.js +13 -0
- package/node_modules/underscore/modules/before.js +12 -0
- package/node_modules/underscore/modules/bind.js +13 -0
- package/node_modules/underscore/modules/bindAll.js +17 -0
- package/node_modules/underscore/modules/chain.js +8 -0
- package/node_modules/underscore/modules/chunk.js +13 -0
- package/node_modules/underscore/modules/clone.js +9 -0
- package/node_modules/underscore/modules/compact.js +6 -0
- package/node_modules/underscore/modules/compose.js +12 -0
- package/node_modules/underscore/modules/constant.js +6 -0
- package/node_modules/underscore/modules/contains.js +10 -0
- package/node_modules/underscore/modules/countBy.js +9 -0
- package/node_modules/underscore/modules/create.js +11 -0
- package/node_modules/underscore/modules/debounce.js +40 -0
- package/node_modules/underscore/modules/defaults.js +5 -0
- package/node_modules/underscore/modules/defer.js +7 -0
- package/node_modules/underscore/modules/delay.js +9 -0
- package/node_modules/underscore/modules/difference.js +13 -0
- package/node_modules/underscore/modules/each.js +23 -0
- package/node_modules/underscore/modules/escape.js +5 -0
- package/node_modules/underscore/modules/every.js +15 -0
- package/node_modules/underscore/modules/extend.js +5 -0
- package/node_modules/underscore/modules/extendOwn.js +7 -0
- package/node_modules/underscore/modules/filter.js +12 -0
- package/node_modules/underscore/modules/find.js +10 -0
- package/node_modules/underscore/modules/findIndex.js +4 -0
- package/node_modules/underscore/modules/findKey.js +12 -0
- package/node_modules/underscore/modules/findLastIndex.js +4 -0
- package/node_modules/underscore/modules/findWhere.js +8 -0
- package/node_modules/underscore/modules/first.js +9 -0
- package/node_modules/underscore/modules/flatten.js +7 -0
- package/node_modules/underscore/modules/functions.js +10 -0
- package/node_modules/underscore/modules/get.js +12 -0
- package/node_modules/underscore/modules/groupBy.js +8 -0
- package/node_modules/underscore/modules/has.js +16 -0
- package/node_modules/underscore/modules/identity.js +4 -0
- package/node_modules/underscore/modules/index-all.js +18 -0
- package/node_modules/underscore/modules/index-default.js +27 -0
- package/node_modules/underscore/modules/index.js +200 -0
- package/node_modules/underscore/modules/indexBy.js +7 -0
- package/node_modules/underscore/modules/indexOf.js +9 -0
- package/node_modules/underscore/modules/initial.js +8 -0
- package/node_modules/underscore/modules/intersection.js +19 -0
- package/node_modules/underscore/modules/invert.js +11 -0
- package/node_modules/underscore/modules/invoke.js +28 -0
- package/node_modules/underscore/modules/isArguments.js +16 -0
- package/node_modules/underscore/modules/isArray.js +6 -0
- package/node_modules/underscore/modules/isArrayBuffer.js +3 -0
- package/node_modules/underscore/modules/isBoolean.js +6 -0
- package/node_modules/underscore/modules/isDataView.js +16 -0
- package/node_modules/underscore/modules/isDate.js +3 -0
- package/node_modules/underscore/modules/isElement.js +4 -0
- package/node_modules/underscore/modules/isEmpty.js +18 -0
- package/node_modules/underscore/modules/isEqual.js +153 -0
- package/node_modules/underscore/modules/isError.js +3 -0
- package/node_modules/underscore/modules/isFinite.js +7 -0
- package/node_modules/underscore/modules/isFunction.js +15 -0
- package/node_modules/underscore/modules/isMap.js +5 -0
- package/node_modules/underscore/modules/isMatch.js +13 -0
- package/node_modules/underscore/modules/isNaN.js +7 -0
- package/node_modules/underscore/modules/isNull.js +4 -0
- package/node_modules/underscore/modules/isNumber.js +3 -0
- package/node_modules/underscore/modules/isObject.js +5 -0
- package/node_modules/underscore/modules/isRegExp.js +3 -0
- package/node_modules/underscore/modules/isSet.js +5 -0
- package/node_modules/underscore/modules/isString.js +3 -0
- package/node_modules/underscore/modules/isSymbol.js +3 -0
- package/node_modules/underscore/modules/isTypedArray.js +15 -0
- package/node_modules/underscore/modules/isUndefined.js +4 -0
- package/node_modules/underscore/modules/isWeakMap.js +5 -0
- package/node_modules/underscore/modules/isWeakSet.js +3 -0
- package/node_modules/underscore/modules/iteratee.js +10 -0
- package/node_modules/underscore/modules/keys.js +16 -0
- package/node_modules/underscore/modules/last.js +9 -0
- package/node_modules/underscore/modules/lastIndexOf.js +6 -0
- package/node_modules/underscore/modules/map.js +16 -0
- package/node_modules/underscore/modules/mapObject.js +16 -0
- package/node_modules/underscore/modules/matcher.js +11 -0
- package/node_modules/underscore/modules/max.js +29 -0
- package/node_modules/underscore/modules/memoize.js +13 -0
- package/node_modules/underscore/modules/min.js +29 -0
- package/node_modules/underscore/modules/mixin.js +18 -0
- package/node_modules/underscore/modules/negate.js +6 -0
- package/node_modules/underscore/modules/noop.js +2 -0
- package/node_modules/underscore/modules/now.js +4 -0
- package/node_modules/underscore/modules/object.js +16 -0
- package/node_modules/underscore/modules/omit.js +22 -0
- package/node_modules/underscore/modules/once.js +6 -0
- package/node_modules/underscore/modules/package.json +1 -0
- package/node_modules/underscore/modules/pairs.js +13 -0
- package/node_modules/underscore/modules/partial.js +24 -0
- package/node_modules/underscore/modules/partition.js +7 -0
- package/node_modules/underscore/modules/pick.js +26 -0
- package/node_modules/underscore/modules/pluck.js +7 -0
- package/node_modules/underscore/modules/property.js +11 -0
- package/node_modules/underscore/modules/propertyOf.js +10 -0
- package/node_modules/underscore/modules/random.js +8 -0
- package/node_modules/underscore/modules/range.js +21 -0
- package/node_modules/underscore/modules/reduce.js +5 -0
- package/node_modules/underscore/modules/reduceRight.js +4 -0
- package/node_modules/underscore/modules/reject.js +8 -0
- package/node_modules/underscore/modules/rest.js +8 -0
- package/node_modules/underscore/modules/restArguments.js +27 -0
- package/node_modules/underscore/modules/result.js +22 -0
- package/node_modules/underscore/modules/sample.js +27 -0
- package/node_modules/underscore/modules/shuffle.js +6 -0
- package/node_modules/underscore/modules/size.js +8 -0
- package/node_modules/underscore/modules/some.js +15 -0
- package/node_modules/underscore/modules/sortBy.js +24 -0
- package/node_modules/underscore/modules/sortedIndex.js +15 -0
- package/node_modules/underscore/modules/tap.js +7 -0
- package/node_modules/underscore/modules/template.js +101 -0
- package/node_modules/underscore/modules/templateSettings.js +9 -0
- package/node_modules/underscore/modules/throttle.js +47 -0
- package/node_modules/underscore/modules/times.js +9 -0
- package/node_modules/underscore/modules/toArray.js +20 -0
- package/node_modules/underscore/modules/toPath.js +9 -0
- package/node_modules/underscore/modules/underscore-array-methods.js +31 -0
- package/node_modules/underscore/modules/underscore.js +25 -0
- package/node_modules/underscore/modules/unescape.js +5 -0
- package/node_modules/underscore/modules/union.js +9 -0
- package/node_modules/underscore/modules/uniq.js +36 -0
- package/node_modules/underscore/modules/uniqueId.js +7 -0
- package/node_modules/underscore/modules/unzip.js +15 -0
- package/node_modules/underscore/modules/values.js +12 -0
- package/node_modules/underscore/modules/where.js +8 -0
- package/node_modules/underscore/modules/without.js +7 -0
- package/node_modules/underscore/modules/wrap.js +8 -0
- package/node_modules/underscore/modules/zip.js +6 -0
- package/node_modules/underscore/package.json +124 -0
- package/node_modules/underscore/underscore-esm-min.js +5 -0
- package/node_modules/underscore/underscore-esm-min.js.map +1 -0
- package/node_modules/underscore/underscore-esm.js +2056 -0
- package/node_modules/underscore/underscore-esm.js.map +1 -0
- package/node_modules/underscore/underscore-min.js +6 -0
- package/node_modules/underscore/underscore-min.js.map +1 -0
- package/node_modules/underscore/underscore-node-f.cjs +2180 -0
- package/node_modules/underscore/underscore-node-f.cjs.map +1 -0
- package/node_modules/underscore/underscore-node.cjs +11 -0
- package/node_modules/underscore/underscore-node.cjs.map +1 -0
- package/node_modules/underscore/underscore-node.mjs +7 -0
- package/node_modules/underscore/underscore-node.mjs.map +1 -0
- package/node_modules/underscore/underscore-umd-min.js +6 -0
- package/node_modules/underscore/underscore-umd-min.js.map +1 -0
- package/node_modules/underscore/underscore-umd.js +2064 -0
- package/node_modules/underscore/underscore-umd.js.map +1 -0
- package/node_modules/underscore/underscore.js +2064 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/xmlbuilder/CHANGELOG.md +438 -0
- package/node_modules/xmlbuilder/LICENSE +21 -0
- package/node_modules/xmlbuilder/README.md +86 -0
- package/node_modules/xmlbuilder/appveyor.yml +20 -0
- package/node_modules/xmlbuilder/lib/Utility.js +83 -0
- package/node_modules/xmlbuilder/lib/XMLAttribute.js +41 -0
- package/node_modules/xmlbuilder/lib/XMLCData.js +32 -0
- package/node_modules/xmlbuilder/lib/XMLComment.js +32 -0
- package/node_modules/xmlbuilder/lib/XMLDTDAttList.js +50 -0
- package/node_modules/xmlbuilder/lib/XMLDTDElement.js +35 -0
- package/node_modules/xmlbuilder/lib/XMLDTDEntity.js +56 -0
- package/node_modules/xmlbuilder/lib/XMLDTDNotation.js +37 -0
- package/node_modules/xmlbuilder/lib/XMLDeclaration.js +40 -0
- package/node_modules/xmlbuilder/lib/XMLDocType.js +108 -0
- package/node_modules/xmlbuilder/lib/XMLDocument.js +49 -0
- package/node_modules/xmlbuilder/lib/XMLDocumentCB.js +414 -0
- package/node_modules/xmlbuilder/lib/XMLDummy.js +29 -0
- package/node_modules/xmlbuilder/lib/XMLElement.js +111 -0
- package/node_modules/xmlbuilder/lib/XMLNode.js +467 -0
- package/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +35 -0
- package/node_modules/xmlbuilder/lib/XMLRaw.js +32 -0
- package/node_modules/xmlbuilder/lib/XMLStreamWriter.js +287 -0
- package/node_modules/xmlbuilder/lib/XMLStringWriter.js +341 -0
- package/node_modules/xmlbuilder/lib/XMLStringifier.js +163 -0
- package/node_modules/xmlbuilder/lib/XMLText.js +32 -0
- package/node_modules/xmlbuilder/lib/XMLWriterBase.js +90 -0
- package/node_modules/xmlbuilder/lib/index.js +53 -0
- package/node_modules/xmlbuilder/package.json +37 -0
- package/package.json +13 -5
- package/scripts/check-doc-links.mjs +4 -0
- package/scripts/check-image-tags.sh +1 -1
- package/scripts/check-package-artifact.mjs +19 -0
- package/scripts/check-release-consistency.test.mjs +2 -2
- package/scripts/dependency-audit.mjs +49 -96
- package/scripts/dependency-audit.test.mjs +70 -106
- package/scripts/docx-browser-test.mjs +56 -0
- package/scripts/docx-compatibility.test.mjs +39 -0
- package/scripts/docx-fixtures.mjs +19 -0
- package/scripts/export-oss.mjs +3 -0
- package/scripts/generate-third-party-notices.mjs +6 -2
- package/scripts/install.sh +1 -1
- package/scripts/notification-console-test.mjs +172 -0
- package/scripts/oss-boundary-check.mjs +3 -1
- package/scripts/publish-images.sh +1 -1
- package/scripts/release-audit.mjs +9 -1
- package/scripts/vendor-mammoth.mjs +130 -0
- package/scripts/verify-github-repo.mjs +8 -0
- package/scripts/verify-oss-export.mjs +3 -0
- package/sql/067_delivery_dlq_replay.sql +10 -0
- package/sql/068_notification_outbox.sql +28 -0
- package/sql/README.en.md +14 -0
- package/sql/README.md +14 -0
- package/src/adapters/llm/file.test.ts +59 -0
- package/src/adapters/llm/file.ts +11 -4
- package/src/app/agent-tool-invocations.test.ts +3 -1
- package/src/app/approval-continuations.mysql.test.ts +1 -1
- package/src/app/approval-continuations.test.ts +27 -1
- package/src/app/approval-continuations.ts +44 -3
- package/src/app/channels-attachments.test.ts +63 -0
- package/src/app/channels.ts +7 -4
- package/src/app/delivery-dlq-replay.mysql.test.ts +139 -0
- package/src/app/delivery-dlq-replay.test.ts +75 -0
- package/src/app/delivery-dlq-replay.ts +41 -0
- package/src/app/delivery.ts +118 -3
- package/src/app/engine.ts +5 -4
- package/src/app/kernel-notification-lifecycle.test.ts +49 -0
- package/src/app/kernel-usage-lifecycle.mysql.test.ts +1 -1
- package/src/app/kernel.ts +17 -0
- package/src/app/notification-outbound.test.ts +53 -0
- package/src/app/notification-outbox.test.ts +321 -0
- package/src/app/notification-outbox.ts +123 -0
- package/src/app/operational-metrics.test.ts +52 -1
- package/src/app/operational-metrics.ts +34 -2
- package/src/app/outbound.ts +41 -2
- package/src/app/runtime-evidence-maintenance.test.ts +34 -1
- package/src/app/runtime-lifecycle-default.ts +7 -0
- package/src/app/runtime-lifecycle.test.ts +89 -0
- package/src/app/runtime-lifecycle.ts +28 -18
- package/src/app/tool-approvals.ts +69 -31
- package/src/core/contracts/delivery-replay.ts +42 -0
- package/src/core/contracts/notification-outbox.ts +54 -0
- package/src/core/contracts/tools-idempotency.test.ts +121 -5
- package/src/core/contracts/tools.ts +21 -11
- package/src/core/contracts/types.ts +2 -0
- package/src/core/observability/openmetrics.test.ts +46 -0
- package/src/core/observability/openmetrics.ts +108 -0
- package/src/core/platform/http-body.test.ts +185 -0
- package/src/core/platform/http-body.ts +58 -0
- package/src/core/runtime/finish-runtime.test.ts +22 -0
- package/src/core/runtime/finish-runtime.ts +21 -10
- package/src/core/runtime/inhub-runtime.ts +10 -2
- package/src/core/runtime/notification-background-work.test.ts +50 -0
- package/src/core/runtime/notification-background-work.ts +101 -0
- package/src/core/runtime/notification-outbox-work.ts +15 -0
- package/src/core/state/delivery-replay.ts +19 -0
- package/src/core/state/notification-outbox.ts +66 -0
- package/src/core/state/state-codec.ts +1 -0
- package/src/core/state/state-contracts.ts +7 -0
- package/src/infrastructure/config/config-approval-ledger.ts +23 -1
- package/src/infrastructure/config/config-delivery-dlq-ledger.ts +51 -12
- package/src/infrastructure/config/configstore.ts +8 -3
- package/src/infrastructure/state/notification-outbox-jsonl.ts +80 -0
- package/src/infrastructure/state/notification-outbox-mysql.ts +100 -0
- package/src/infrastructure/state/notification-outbox-storage.test.ts +325 -0
- package/src/infrastructure/state/state-jsonl.ts +80 -14
- package/src/infrastructure/state/state-mysql.ts +63 -5
- package/src/modules/usage/background-work.test.ts +28 -0
- package/src/modules/usage/background-work.ts +43 -7
- package/src/modules/usage/billing-reconciliation.test.ts +16 -2
- package/src/modules/usage/billing-repository.ts +9 -0
- package/src/modules/usage/maintenance.test.ts +18 -2
- package/src/modules/usage/maintenance.ts +8 -0
- package/src/routes/admin-notifications.test.ts +75 -0
- package/src/routes/admin-notifications.ts +77 -0
- package/src/routes/admin-runtime.test.ts +25 -0
- package/src/routes/admin-runtime.ts +29 -0
- package/src/routes/admin.ts +1 -0
- package/src/test-support/notification-outbox-journal-crash-child.ts +20 -0
- package/vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz +0 -0
- package/vendor/mammoth-library/LICENSE +22 -0
- package/vendor/mammoth-library/SOURCE.json +57 -0
- package/vendor/mammoth-library/browser/docx/files.js +14 -0
- package/vendor/mammoth-library/browser/unzip.js +12 -0
- package/vendor/mammoth-library/lib/document-to-html.js +469 -0
- package/vendor/mammoth-library/lib/documents.js +254 -0
- package/vendor/mammoth-library/lib/docx/body-reader.js +798 -0
- package/vendor/mammoth-library/lib/docx/comments-reader.js +31 -0
- package/vendor/mammoth-library/lib/docx/content-types-reader.js +58 -0
- package/vendor/mammoth-library/lib/docx/document-xml-reader.js +30 -0
- package/vendor/mammoth-library/lib/docx/docx-reader.js +226 -0
- package/vendor/mammoth-library/lib/docx/files.js +80 -0
- package/vendor/mammoth-library/lib/docx/notes-reader.js +28 -0
- package/vendor/mammoth-library/lib/docx/numbering-xml.js +111 -0
- package/vendor/mammoth-library/lib/docx/office-xml-reader.js +73 -0
- package/vendor/mammoth-library/lib/docx/relationships-reader.js +43 -0
- package/vendor/mammoth-library/lib/docx/style-map.js +75 -0
- package/vendor/mammoth-library/lib/docx/styles-reader.js +90 -0
- package/vendor/mammoth-library/lib/docx/uris.js +21 -0
- package/vendor/mammoth-library/lib/html/ast.js +51 -0
- package/vendor/mammoth-library/lib/html/index.js +41 -0
- package/vendor/mammoth-library/lib/html/simplify.js +88 -0
- package/vendor/mammoth-library/lib/images.js +31 -0
- package/vendor/mammoth-library/lib/index.d.ts +86 -0
- package/vendor/mammoth-library/lib/index.js +111 -0
- package/vendor/mammoth-library/lib/options-reader.js +107 -0
- package/vendor/mammoth-library/lib/promises.js +42 -0
- package/vendor/mammoth-library/lib/raw-text.js +14 -0
- package/vendor/mammoth-library/lib/results.js +72 -0
- package/vendor/mammoth-library/lib/style-reader.js +365 -0
- package/vendor/mammoth-library/lib/styles/document-matchers.js +100 -0
- package/vendor/mammoth-library/lib/styles/html-paths.js +75 -0
- package/vendor/mammoth-library/lib/styles/parser/tokeniser.js +30 -0
- package/vendor/mammoth-library/lib/transforms.js +62 -0
- package/vendor/mammoth-library/lib/underline.js +11 -0
- package/vendor/mammoth-library/lib/unzip.js +20 -0
- package/vendor/mammoth-library/lib/writers/html-writer.js +159 -0
- package/vendor/mammoth-library/lib/writers/index.js +14 -0
- package/vendor/mammoth-library/lib/writers/markdown-writer.js +163 -0
- package/vendor/mammoth-library/lib/xml/index.js +8 -0
- package/vendor/mammoth-library/lib/xml/nodes.js +70 -0
- package/vendor/mammoth-library/lib/xml/reader.js +69 -0
- package/vendor/mammoth-library/lib/xml/writer.js +61 -0
- package/vendor/mammoth-library/lib/xml/xmldom.js +23 -0
- package/vendor/mammoth-library/lib/zipfile.js +72 -0
- package/vendor/mammoth-library/package.json +39 -0
- package/vendor/mammoth-library/upstream-package.json +64 -0
- package/vendor/mammoth-library-distribution.json +4 -0
- package/web/console/assets/{Accounts-DKhw_QLr.js → Accounts-Dhj6PjXP.js} +1 -1
- package/web/console/assets/{AgentClients-CM4_5HaA.js → AgentClients-CMy8StAH.js} +1 -1
- package/web/console/assets/{AgentTasks-CkQgZTU5.js → AgentTasks-DA1xZdmP.js} +1 -1
- package/web/console/assets/{Approvals-B9O9TkbO.js → Approvals-DIsd7R8N.js} +1 -1
- package/web/console/assets/{Audit-2vDC1SPu.js → Audit-AUDABLTX.js} +1 -1
- package/web/console/assets/{BrandLockup-BgASiRSE.js → BrandLockup-CffORQse.js} +1 -1
- package/web/console/assets/{Channels-A-GvkNBt.js → Channels-B8rjsM0S.js} +1 -1
- package/web/console/assets/{ChatEntries-BLxymI67.js → ChatEntries-iZjJMEUZ.js} +1 -1
- package/web/console/assets/{Clients-DeNlmvS6.js → Clients-CwgpGCSD.js} +1 -1
- package/web/console/assets/{Cost-CBq_L4Kz.js → Cost-B2tNxu71.js} +1 -1
- package/web/console/assets/{Credentials-DmtbctNj.js → Credentials-BuwFB-fV.js} +1 -1
- package/web/console/assets/{Diagnostics-BbcRDiA-.js → Diagnostics-z5glms11.js} +1 -1
- package/web/console/assets/{Executors-gGgmQrDt.js → Executors-Bc4SvjeH.js} +1 -1
- package/web/console/assets/{Kb-lgY6OXUz.js → Kb-BRbRHxLy.js} +1 -1
- package/web/console/assets/{Login-DA6BASZd.js → Login-CGgLGTE1.js} +1 -1
- package/web/console/assets/{Projects-DEbmB_sT.js → Projects-CPWw3con.js} +1 -1
- package/web/console/assets/{Routes-qS6LLoyS.js → Routes-CMIaE0Bx.js} +1 -1
- package/web/console/assets/Runs-B8HuE700.js +3 -0
- package/web/console/assets/Runs-Bv6CV_Hk.css +1 -0
- package/web/console/assets/{Setup-DEpVF5uw.js → Setup-G8RKzliR.js} +1 -1
- package/web/console/assets/{Shell-DgoPgK1E.js → Shell-DimHgraJ.js} +1 -1
- package/web/console/assets/{StorageBuckets-DJtNN769.js → StorageBuckets-CiVYXIE2.js} +1 -1
- package/web/console/assets/{SystemSettings-0DEUgeTR.js → SystemSettings-DF8sZNen.js} +1 -1
- package/web/console/assets/{SystemStatus-CR1phiPE.js → SystemStatus-BlHywK13.js} +1 -1
- package/web/console/assets/{Targets-D65l-IMB.js → Targets-BXaoPoAJ.js} +1 -1
- package/web/console/assets/{Tools-DqtrINrN.js → Tools-B22lNHXq.js} +1 -1
- package/web/console/assets/{Usage-B5njXNjx.js → Usage-C02EzoI2.js} +1 -1
- package/web/console/assets/{UsageAccess-ChnB4pjb.js → UsageAccess-DOb-cyPE.js} +1 -1
- package/web/console/assets/{UsageHelp-BBKIvbQ5.js → UsageHelp-CzS2gI40.js} +1 -1
- package/web/console/assets/{index-sLKrJd_p.js → index-CK0ZCTZv.js} +2 -2
- package/web/console/assets/{request-BpaimqEb.js → request-DKycpD7z.js} +1 -1
- package/web/console/assets/{schema-D0Z4kFCZ.js → schema-SCiNxBlR.js} +1 -1
- package/web/console/index.html +1 -1
- package/web-admin/package-lock.json +5 -23
- package/web-admin/package.json +1 -1
- package/web-admin/src/components/NotificationOutboxPanel.vue +106 -0
- package/web-admin/src/pages/Runs.vue +8 -2
- package/security/dependency-audit-exceptions.json +0 -192
- package/web/console/assets/Runs-CvGTV8I-.css +0 -1
- package/web/console/assets/Runs-DG-VLRSc.js +0 -3
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { createServer } from 'node:http';
|
|
3
|
+
import { createHash } from 'node:crypto';
|
|
4
|
+
import { existsSync, readFileSync, statSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
|
|
5
|
+
import { tmpdir } from 'node:os';
|
|
6
|
+
import { resolve, join, extname, relative } from 'node:path';
|
|
7
|
+
import { once } from 'node:events';
|
|
8
|
+
import { chromium } from 'playwright';
|
|
9
|
+
|
|
10
|
+
// Real production-built Runs page, synthetic same-origin API fixtures only.
|
|
11
|
+
// Usage: npm --prefix web-admin run build && node scripts/notification-console-test.mjs [--output DIR]
|
|
12
|
+
const root = process.cwd();
|
|
13
|
+
const built = join(root, 'web/console');
|
|
14
|
+
assert.ok(existsSync(join(built, 'index.html')), 'Build web-admin before running the notification console regression');
|
|
15
|
+
const outputIndex = process.argv.indexOf('--output');
|
|
16
|
+
const retained = outputIndex >= 0;
|
|
17
|
+
if (retained && !process.argv[outputIndex + 1]) throw new Error('--output requires a directory');
|
|
18
|
+
const output = retained ? resolve(process.argv[outputIndex + 1]) : mkdtempSync(join(tmpdir(), 'notification-console-'));
|
|
19
|
+
mkdirSync(output, { recursive: true });
|
|
20
|
+
const checks = [], requests = [], pageErrors = [], unexpected = [];
|
|
21
|
+
const report = { passed: false, mode: 'production-build-local-synthetic-api', checks, requests, pageErrors, unexpected,
|
|
22
|
+
index_sha256: createHash('sha256').update(readFileSync(join(built, 'index.html'))).digest('hex') };
|
|
23
|
+
const mime = { '.html': 'text/html; charset=utf-8', '.js': 'text/javascript; charset=utf-8', '.css': 'text/css; charset=utf-8', '.svg': 'image/svg+xml', '.json': 'application/json' };
|
|
24
|
+
const server = createServer((req, res) => {
|
|
25
|
+
const url = new URL(req.url ?? '/', 'http://127.0.0.1');
|
|
26
|
+
const rel = decodeURIComponent(url.pathname.replace(/^\/console\/?/, ''));
|
|
27
|
+
let file = resolve(built, rel || 'index.html');
|
|
28
|
+
if (relative(built, file).startsWith('..')) { res.writeHead(404).end(); return; }
|
|
29
|
+
if (!existsSync(file) || statSync(file).isDirectory()) file = join(built, 'index.html');
|
|
30
|
+
res.writeHead(200, { 'content-type': mime[extname(file)] ?? 'application/octet-stream' }); res.end(readFileSync(file));
|
|
31
|
+
});
|
|
32
|
+
server.listen(0, '127.0.0.1'); await once(server, 'listening');
|
|
33
|
+
const origin = `http://127.0.0.1:${server.address().port}`;
|
|
34
|
+
let browser, currentPage;
|
|
35
|
+
const kinds = [ ['callback', '任务回调'], ['delivery', '结果送达'], ['approval-notification', '审批提示'], ['delivery-dlq', '通知失败留存'] ];
|
|
36
|
+
const statuses = ['pending', 'processing', 'completed', 'skipped', 'failed', 'uncertain'];
|
|
37
|
+
const seed = () => kinds.flatMap(([kind]) => statuses.map(status => ({ event_id: `synthetic:${kind}:${status}`, kind,
|
|
38
|
+
job_id: `synthetic-business-parent-${kind}`, request_id: 'synthetic-request', status, attempts: 3,
|
|
39
|
+
created_at: '2026-01-01T00:00:00.000Z', updated_at: '2026-01-01T00:01:00.000Z', last_error: status === 'failed' ? 'webhook_http_403' : null })));
|
|
40
|
+
async function open(role) {
|
|
41
|
+
const context = await browser.newContext({ viewport: { width: 1560, height: 1050 } });
|
|
42
|
+
const rows = seed(); const control = { missing: false, conflict: false, role, rows };
|
|
43
|
+
await context.route('**/*', async route => {
|
|
44
|
+
const request = route.request(); const url = new URL(request.url());
|
|
45
|
+
if (url.origin !== origin) { unexpected.push({ path: url.pathname, reason: 'external request blocked' }); return route.abort(); }
|
|
46
|
+
if (url.pathname.startsWith('/console/')) return route.continue();
|
|
47
|
+
if (url.pathname === '/health') return route.fulfill({ json: { status: 'ok' } });
|
|
48
|
+
if (url.pathname === '/branding') return route.fulfill({ json: {} });
|
|
49
|
+
if (url.pathname === '/admin/api/me') return route.fulfill({ json: { username: `synthetic-${role}`, role,
|
|
50
|
+
perms: role === 'writer' ? ['runs:read', 'runs:write'] : ['runs:read'], capabilities: { modules: ['runs'] } } });
|
|
51
|
+
if (url.pathname === '/admin/api/status') return route.fulfill({ json: { executors: [] } });
|
|
52
|
+
if (url.pathname === '/admin/api/runs' || url.pathname === '/admin/api/threads') return route.fulfill({ json: [] });
|
|
53
|
+
if (url.pathname === '/admin/api/conversation-audits') return route.fulfill({ json: { items: [], has_more: false, next_offset: null } });
|
|
54
|
+
if (url.pathname.startsWith('/admin/api/notification-outbox')) {
|
|
55
|
+
const record = { role, method: request.method(), path: url.pathname, query: Object.fromEntries(url.searchParams) };
|
|
56
|
+
requests.push(record);
|
|
57
|
+
if (control.missing) { record.response = 503; return route.fulfill({ status: 503, json: { error: 'notification_durability_unavailable' } }); }
|
|
58
|
+
if (request.method() === 'GET') {
|
|
59
|
+
const kind = url.searchParams.get('kind'); const status = url.searchParams.get('status');
|
|
60
|
+
const available = rows.filter(row => row.kind === kind); const filtered = available.filter(row => !status || row.status === status);
|
|
61
|
+
const counts = Object.fromEntries(statuses.map(value => [value, available.filter(row => row.status === value).length]));
|
|
62
|
+
record.response = 200;
|
|
63
|
+
return route.fulfill({ json: { capability: 'durable', items: filtered.slice(Number(url.searchParams.get('offset') ?? 0), 20),
|
|
64
|
+
total: filtered.length, snapshot: { counts, oldestPendingAgeSeconds: 60, expiredLeases: 0 } } });
|
|
65
|
+
}
|
|
66
|
+
record.body = request.postDataJSON();
|
|
67
|
+
if (role !== 'writer') { record.response = 403; return route.fulfill({ status: 403, json: { error: 'forbidden' } }); }
|
|
68
|
+
const id = decodeURIComponent(url.pathname.split('/').at(-2)); const row = rows.find(value => value.event_id === id);
|
|
69
|
+
if (control.conflict || !row || row.status !== record.body.expected_status) {
|
|
70
|
+
record.response = 409; return route.fulfill({ status: 409, json: { error: 'notification_status_changed' } });
|
|
71
|
+
}
|
|
72
|
+
if (row.status === 'uncertain' && record.body.allow_uncertain !== true) {
|
|
73
|
+
record.response = 409; return route.fulfill({ status: 409, json: { error: 'notification_uncertain_requires_confirmation' } });
|
|
74
|
+
}
|
|
75
|
+
row.status = 'pending'; record.response = 200;
|
|
76
|
+
return route.fulfill({ json: { queued: true, event_id: id } });
|
|
77
|
+
}
|
|
78
|
+
unexpected.push({ method: request.method(), path: url.pathname });
|
|
79
|
+
return route.fulfill({ status: 404, json: { error: 'unmocked_synthetic_request' } });
|
|
80
|
+
});
|
|
81
|
+
const page = await context.newPage(); currentPage = page;
|
|
82
|
+
page.on('pageerror', error => pageErrors.push(error.message));
|
|
83
|
+
await page.goto(`${origin}/console/runs`, { waitUntil: 'networkidle' });
|
|
84
|
+
// Keep screenshots and successive confirmation dialogs deterministic without
|
|
85
|
+
// changing the production component, its permission checks or its API calls.
|
|
86
|
+
await page.addStyleTag({ content: '*, *::before, *::after { transition: none !important; animation: none !important; }' });
|
|
87
|
+
await page.getByRole('tab', { name: '通知送达', exact: true }).click();
|
|
88
|
+
await page.locator('.notification-panel .el-table').waitFor({ state: 'visible' });
|
|
89
|
+
return { context, page, control, panel: page.locator('.notification-panel') };
|
|
90
|
+
}
|
|
91
|
+
async function choose(page, panel, index, label) {
|
|
92
|
+
const before = requests.length;
|
|
93
|
+
await panel.locator('.filters .el-select').nth(index).click();
|
|
94
|
+
await page.getByRole('option', { name: label, exact: true }).filter({ visible: true }).click();
|
|
95
|
+
await page.waitForFunction(() => !document.querySelector('.notification-panel .el-loading-mask') || getComputedStyle(document.querySelector('.notification-panel .el-loading-mask')).display === 'none');
|
|
96
|
+
assert.ok(requests.length > before, `Filter ${label} did not request new data`);
|
|
97
|
+
}
|
|
98
|
+
const posts = () => requests.filter(request => request.method === 'POST');
|
|
99
|
+
try {
|
|
100
|
+
const channel = process.env.PLAYWRIGHT_CHANNEL?.trim();
|
|
101
|
+
browser = await chromium.launch({ headless: true, ...(channel ? { channel } : {}) });
|
|
102
|
+
const read = await open('reader');
|
|
103
|
+
assert.equal(await read.panel.getByRole('button', { name: /重新处理通知|核对后重新发送/ }).count(), 0);
|
|
104
|
+
assert.equal(await read.panel.getByRole('columnheader', { name: '操作', exact: true }).count(), 0);
|
|
105
|
+
assert.equal(await read.panel.locator('.totals').innerText(), '等待补发 1\n正在处理 1\n处理失败 1\n需核对 1');
|
|
106
|
+
checks.push('runs:read can inspect summaries and cannot see mutation controls');
|
|
107
|
+
await read.page.screenshot({ path: join(output, 'notification-reader.png'), fullPage: true, animations: 'disabled' });
|
|
108
|
+
for (const [, label] of kinds.slice(1)) await choose(read.page, read.panel, 0, label);
|
|
109
|
+
assert.deepEqual(requests.filter(request => request.role === 'reader').map(request => request.query.kind), kinds.map(([kind]) => kind));
|
|
110
|
+
await choose(read.page, read.panel, 1, '需核对');
|
|
111
|
+
assert.equal(await read.panel.locator('.el-table__body tbody tr').count(), 1);
|
|
112
|
+
assert.equal(requests.at(-1).query.status, 'uncertain'); assert.equal(requests.at(-1).query.offset, '0');
|
|
113
|
+
checks.push('all four kind filters and status filter request the correct summaries');
|
|
114
|
+
assert.equal(posts().length, 0); await read.context.close();
|
|
115
|
+
|
|
116
|
+
const write = await open('writer'); const { page, panel, control } = write;
|
|
117
|
+
const failed = panel.getByRole('row').filter({ hasText: 'synthetic:callback:failed' });
|
|
118
|
+
await failed.getByRole('button', { name: '重新处理通知', exact: true }).click();
|
|
119
|
+
let dialog = page.getByRole('dialog', { name: '重新处理通知', exact: true });
|
|
120
|
+
await dialog.getByText('原业务任务不会再次执行。', { exact: false }).waitFor();
|
|
121
|
+
await dialog.getByRole('button', { name: '重新处理', exact: true }).click();
|
|
122
|
+
await dialog.waitFor({ state: 'hidden' });
|
|
123
|
+
await page.getByText('已加入通知处理队列', { exact: true }).waitFor();
|
|
124
|
+
await failed.getByText('等待补发', { exact: true }).waitFor();
|
|
125
|
+
assert.deepEqual(posts().at(-1).body, { kind: 'callback', expected_status: 'failed', allow_uncertain: false });
|
|
126
|
+
checks.push('writer failed retry submits notification ID, expected status and no business rerun');
|
|
127
|
+
|
|
128
|
+
const uncertain = panel.getByRole('row').filter({ hasText: 'synthetic:callback:uncertain' });
|
|
129
|
+
await uncertain.getByRole('button', { name: '核对后重新发送', exact: true }).click();
|
|
130
|
+
dialog = page.getByRole('dialog', { name: '重新处理通知', exact: true });
|
|
131
|
+
await dialog.getByText('继续可能产生重复消息。', { exact: false }).waitFor();
|
|
132
|
+
await page.screenshot({ path: join(output, 'notification-uncertain-confirmation.png'), fullPage: true, animations: 'disabled' });
|
|
133
|
+
const beforeCancel = posts().length;
|
|
134
|
+
await dialog.getByRole('button', { name: '取消', exact: true }).click(); await dialog.waitFor({ state: 'hidden' });
|
|
135
|
+
assert.equal(posts().length, beforeCancel); checks.push('uncertain cancellation sends no POST');
|
|
136
|
+
await uncertain.getByRole('button', { name: '核对后重新发送', exact: true }).click();
|
|
137
|
+
await page.getByRole('dialog', { name: '重新处理通知', exact: true }).getByRole('button', { name: '已核对,仍需发送', exact: true }).click();
|
|
138
|
+
await uncertain.getByText('等待补发', { exact: true }).waitFor();
|
|
139
|
+
assert.deepEqual(posts().at(-1).body, { kind: 'callback', expected_status: 'uncertain', allow_uncertain: true });
|
|
140
|
+
checks.push('uncertain retry requires explicit acknowledgement and sends allow_uncertain=true');
|
|
141
|
+
|
|
142
|
+
await choose(page, panel, 0, '结果送达'); control.conflict = true;
|
|
143
|
+
await panel.getByRole('row').filter({ hasText: 'synthetic:delivery:failed' }).getByRole('button', { name: '重新处理通知', exact: true }).click();
|
|
144
|
+
await page.getByRole('dialog', { name: '重新处理通知', exact: true }).getByRole('button', { name: '重新处理', exact: true }).click();
|
|
145
|
+
await page.getByText('未能加入队列,通知状态可能已变化,请刷新核对。', { exact: true }).waitFor();
|
|
146
|
+
assert.equal(posts().at(-1).response, 409);
|
|
147
|
+
assert.equal(control.rows.find(row => row.event_id === 'synthetic:delivery:failed').status, 'failed');
|
|
148
|
+
checks.push('409 conflict displays failure without claiming successful replay');
|
|
149
|
+
control.conflict = false; control.missing = true;
|
|
150
|
+
await panel.getByRole('button', { name: '刷新通知', exact: true }).click();
|
|
151
|
+
await panel.getByText('当前存储实现未提供这类通知的持久化能力。', { exact: true }).waitFor();
|
|
152
|
+
assert.equal(await panel.locator('.el-table').count(), 0);
|
|
153
|
+
await page.screenshot({ path: join(output, 'notification-capability-unavailable.png'), fullPage: true, animations: 'disabled' });
|
|
154
|
+
checks.push('503 missing capability removes stale rows and displays the explicit capability boundary');
|
|
155
|
+
control.missing = false;
|
|
156
|
+
await panel.getByRole('button', { name: '刷新通知', exact: true }).click();
|
|
157
|
+
await panel.locator('.el-table').waitFor({ state: 'visible' });
|
|
158
|
+
await page.screenshot({ path: join(output, 'notification-writer.png'), fullPage: true, animations: 'disabled' });
|
|
159
|
+
assert.ok(posts().every(request => /^\/admin\/api\/notification-outbox\/[^/]+\/retry$/.test(request.path)));
|
|
160
|
+
assert.equal(posts().length, 3); assert.deepEqual(pageErrors, []); assert.deepEqual(unexpected, []);
|
|
161
|
+
checks.push('all three mutations target only notification retry; no parent task endpoint, browser error or external request');
|
|
162
|
+
await write.context.close(); report.passed = true;
|
|
163
|
+
console.log(`Notification console regression passed (${checks.length} checks, ${posts().length} synthetic notification retries)`);
|
|
164
|
+
} catch (error) {
|
|
165
|
+
report.error = String(error?.stack ?? error); process.exitCode = 1;
|
|
166
|
+
if (currentPage && !currentPage.isClosed()) await currentPage.screenshot({ path: join(output, 'notification-failure.png'), fullPage: true, animations: 'disabled' }).catch(() => undefined);
|
|
167
|
+
console.error(report.error);
|
|
168
|
+
} finally {
|
|
169
|
+
await browser?.close(); server.closeAllConnections(); await new Promise(resolve => server.close(resolve));
|
|
170
|
+
writeFileSync(join(output, 'notification-console-report.json'), `${JSON.stringify(report, null, 2)}\n`);
|
|
171
|
+
if (!retained) rmSync(output, { recursive: true, force: true });
|
|
172
|
+
}
|
|
@@ -156,7 +156,9 @@ for (const file of packFiles) {
|
|
|
156
156
|
for (const file of packFiles.filter((file) => /\.(?:ts|tsx|js|mjs|vue|json|sql|md|yml|yaml|php|py|sh|html|css|txt)$/.test(file))) {
|
|
157
157
|
const text = read(file);
|
|
158
158
|
if (!text) continue;
|
|
159
|
-
|
|
159
|
+
// The bundled JSZip/pako license comments retain their original wording.
|
|
160
|
+
// Path, private implementation and metadata checks still apply below.
|
|
161
|
+
if (file !== 'LICENSE' && !/^node_modules\/(?:jszip|pako)\//.test(file) && forbiddenPublicWording.test(text)) {
|
|
160
162
|
findings.push(`${file}: use neutral public wording for private extension boundaries`);
|
|
161
163
|
}
|
|
162
164
|
if (!guardScriptFiles.has(file)) {
|
|
@@ -9,7 +9,7 @@ REGISTRY="${BAILING_IMAGE_REGISTRY:-$DEFAULT_REGISTRY}"
|
|
|
9
9
|
NAMESPACE="${BAILING_IMAGE_NAMESPACE:-$DEFAULT_NAMESPACE}"
|
|
10
10
|
PACKAGE_VERSION="$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' package.json | head -1)"
|
|
11
11
|
TAG="${BAILING_IMAGE_TAG:-$PACKAGE_VERSION}"
|
|
12
|
-
[ -n "$TAG" ] || TAG="0.9.
|
|
12
|
+
[ -n "$TAG" ] || TAG="0.9.4"
|
|
13
13
|
NODE_IMAGE="${BAILING_NODE_IMAGE:-node:22-bookworm-slim}"
|
|
14
14
|
PLATFORM="${BAILING_IMAGE_PLATFORM:-linux/amd64}"
|
|
15
15
|
PUSH="${BAILING_PUSH_IMAGES:-0}"
|
|
@@ -45,6 +45,14 @@ const requiredRepoFiles = [
|
|
|
45
45
|
'docs/RELEASE_NOTES_v0.9.2.en.md',
|
|
46
46
|
'docs/UPGRADE_v0.9.2.md',
|
|
47
47
|
'docs/UPGRADE_v0.9.2.en.md',
|
|
48
|
+
'docs/RELEASE_NOTES_v0.9.3.md',
|
|
49
|
+
'docs/RELEASE_NOTES_v0.9.3.en.md',
|
|
50
|
+
'docs/UPGRADE_v0.9.3.md',
|
|
51
|
+
'docs/UPGRADE_v0.9.3.en.md',
|
|
52
|
+
'docs/RELEASE_NOTES_v0.9.4.md',
|
|
53
|
+
'docs/RELEASE_NOTES_v0.9.4.en.md',
|
|
54
|
+
'docs/UPGRADE_v0.9.4.md',
|
|
55
|
+
'docs/UPGRADE_v0.9.4.en.md',
|
|
48
56
|
'docs/RELEASE_NOTES_v0.6.1.md',
|
|
49
57
|
'docs/RELEASE_NOTES_v0.6.0.md',
|
|
50
58
|
'docs/CHANGELOG.md',
|
|
@@ -336,7 +344,7 @@ try {
|
|
|
336
344
|
for (const match of findPublicContentDenylistMatches(text, privateExactTextDenylist)) {
|
|
337
345
|
findings.push(`${file}: ${match}`);
|
|
338
346
|
}
|
|
339
|
-
if (file !== 'LICENSE' && forbiddenPublicWording.test(text)) {
|
|
347
|
+
if (file !== 'LICENSE' && !/^node_modules\/(?:jszip|pako)\//.test(file) && forbiddenPublicWording.test(text)) {
|
|
340
348
|
findings.push(`${file}: use neutral public wording for private extension boundaries`);
|
|
341
349
|
}
|
|
342
350
|
if (!guardScriptFiles.has(file)) {
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { createHash } from 'node:crypto';
|
|
3
|
+
import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
4
|
+
import { tmpdir } from 'node:os';
|
|
5
|
+
import { dirname, join, resolve } from 'node:path';
|
|
6
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
7
|
+
import { execFileSync } from 'node:child_process';
|
|
8
|
+
|
|
9
|
+
export const upstream = Object.freeze({
|
|
10
|
+
name: 'mammoth', version: '1.12.0',
|
|
11
|
+
tarball: 'https://registry.npmjs.org/mammoth/-/mammoth-1.12.0.tgz',
|
|
12
|
+
integrity: 'sha512-cwnK1RIcRdDMi2HRx2EXGYlxqIEh0Oo3bLhorgnsVJi2UkbX1+jKxuBNR9PC5+JaX7EkmJxFPmo6mjLpqShI2w==',
|
|
13
|
+
});
|
|
14
|
+
const root = fileURLToPath(new URL('../', import.meta.url));
|
|
15
|
+
const vendor = 'vendor/mammoth-library';
|
|
16
|
+
const archiveName = 'bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz';
|
|
17
|
+
const distributionPath = 'vendor/mammoth-library-distribution.json';
|
|
18
|
+
const digest = bytes => createHash('sha256').update(bytes).digest('hex');
|
|
19
|
+
const jsonText = value => `${JSON.stringify(value, null, 2)}\n`;
|
|
20
|
+
|
|
21
|
+
function filesUnder(path, prefix = '') {
|
|
22
|
+
return readdirSync(path, { withFileTypes: true }).flatMap(entry => {
|
|
23
|
+
assert(!entry.isSymbolicLink(), `Unexpected symlink: ${prefix}${entry.name}`);
|
|
24
|
+
return entry.isDirectory() ? filesUnder(join(path, entry.name), `${prefix}${entry.name}/`) : [`${prefix}${entry.name}`];
|
|
25
|
+
}).sort();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// npm/gzip versions can encode identical files differently across platforms.
|
|
29
|
+
// Pin the distributed bytes, then verify their complete unpacked contents.
|
|
30
|
+
function checkArchive(directory, archive) {
|
|
31
|
+
const temporary = mkdtempSync(join(tmpdir(), 'mammoth-archive-check-'));
|
|
32
|
+
try {
|
|
33
|
+
const expected = filesUnder(directory);
|
|
34
|
+
const entries = execFileSync('tar', ['-tzf', archive], { encoding: 'utf8' }).trim().split('\n').sort();
|
|
35
|
+
assert.deepEqual(entries, expected.map(file => `package/${file}`).sort(), 'Archive file inventory changed');
|
|
36
|
+
const details = execFileSync('tar', ['-tvzf', archive], { encoding: 'utf8' }).trim().split('\n');
|
|
37
|
+
assert(details.every(line => line.startsWith('-')), 'Archive must contain only regular files');
|
|
38
|
+
execFileSync('tar', ['-xzf', archive, '-C', temporary]);
|
|
39
|
+
for (const file of expected) {
|
|
40
|
+
assert.equal(digest(readFileSync(join(temporary, 'package', file))), digest(readFileSync(join(directory, file))), `Archive content differs: ${file}`);
|
|
41
|
+
}
|
|
42
|
+
} catch (error) { throw new Error(`Library archive does not match the reviewed source: ${error.message}`); }
|
|
43
|
+
finally { rmSync(temporary, { recursive: true, force: true }); }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function libraryManifest(original) {
|
|
47
|
+
const manifest = structuredClone(original);
|
|
48
|
+
Object.assign(manifest, {
|
|
49
|
+
name: '@bailinghub/mammoth-library', version: '1.12.0-bailinghub.1', private: true,
|
|
50
|
+
description: 'BailingHub library-only distribution of Mammoth 1.12.0; no command-line interface',
|
|
51
|
+
});
|
|
52
|
+
for (const key of ['bin', 'scripts', 'devDependencies', 'volta']) delete manifest[key];
|
|
53
|
+
delete manifest.dependencies.argparse;
|
|
54
|
+
return manifest;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function checkVendor(base = root) {
|
|
58
|
+
const directory = join(base, vendor);
|
|
59
|
+
const source = JSON.parse(readFileSync(join(directory, 'SOURCE.json'), 'utf8'));
|
|
60
|
+
assert.deepEqual(source.upstream, upstream, 'Unexpected upstream identity');
|
|
61
|
+
const actualFiles = filesUnder(directory).filter(file => file !== 'SOURCE.json');
|
|
62
|
+
assert.deepEqual(actualFiles, Object.keys(source.files).sort(), 'Vendor file inventory changed');
|
|
63
|
+
for (const file of actualFiles) assert.equal(digest(readFileSync(join(directory, file))), source.files[file], `Vendor source changed: ${file}`);
|
|
64
|
+
const original = JSON.parse(readFileSync(join(directory, 'upstream-package.json'), 'utf8'));
|
|
65
|
+
assert.equal(readFileSync(join(directory, 'package.json'), 'utf8'), jsonText(libraryManifest(original)), 'Library manifest is not the reviewed transformation');
|
|
66
|
+
assert(actualFiles.every(file => /^(?:lib\/|browser\/|LICENSE$|package\.json$|upstream-package\.json$)/.test(file)), 'Non-library upstream file included');
|
|
67
|
+
const distribution = JSON.parse(readFileSync(join(base, distributionPath), 'utf8'));
|
|
68
|
+
assert.equal(distribution.file, archiveName, 'Unexpected library archive');
|
|
69
|
+
assert.equal(digest(readFileSync(join(base, 'vendor', archiveName))), distribution.sha256, 'Library archive changed');
|
|
70
|
+
checkArchive(directory, join(base, 'vendor', archiveName));
|
|
71
|
+
const core = JSON.parse(readFileSync(join(base, 'package.json'), 'utf8'));
|
|
72
|
+
const console = JSON.parse(readFileSync(join(base, 'web-admin/package.json'), 'utf8'));
|
|
73
|
+
assert.equal(core.dependencies.mammoth, `file:vendor/${archiveName}`);
|
|
74
|
+
assert.equal(console.dependencies.mammoth, `file:../vendor/${archiveName}`);
|
|
75
|
+
assert.deepEqual(core.bundleDependencies, ['mammoth'], 'Core must bundle only the local library for npm consumers');
|
|
76
|
+
const archiveIntegrity = `sha512-${createHash('sha512').update(readFileSync(join(base, 'vendor', archiveName))).digest('base64')}`;
|
|
77
|
+
for (const [file, manifest] of [['package-lock.json', core], ['web-admin/package-lock.json', console]]) {
|
|
78
|
+
const lock = JSON.parse(readFileSync(join(base, file), 'utf8'));
|
|
79
|
+
const entry = lock.packages?.['node_modules/mammoth'];
|
|
80
|
+
assert.equal(entry?.name, '@bailinghub/mammoth-library', `${file}: unexpected DOCX package`);
|
|
81
|
+
assert.equal(entry?.version, '1.12.0-bailinghub.1', `${file}: unexpected DOCX version`);
|
|
82
|
+
assert.equal(entry?.resolved, manifest.dependencies.mammoth, `${file}: unexpected DOCX source`);
|
|
83
|
+
assert.equal(entry?.integrity, archiveIntegrity, `${file}: DOCX archive integrity mismatch`);
|
|
84
|
+
}
|
|
85
|
+
return { upstream, retainedFiles: actualFiles.length, package: libraryManifest(original).name };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async function upstreamFiles() {
|
|
89
|
+
const response = await fetch(upstream.tarball, { signal: AbortSignal.timeout(30000) });
|
|
90
|
+
if (!response.ok) throw new Error(`Upstream download failed: HTTP ${response.status}`);
|
|
91
|
+
const bytes = Buffer.from(await response.arrayBuffer());
|
|
92
|
+
assert.equal(`sha512-${createHash('sha512').update(bytes).digest('base64')}`, upstream.integrity, 'Upstream tarball integrity mismatch');
|
|
93
|
+
const temporary = mkdtempSync(join(tmpdir(), 'mammoth-upstream-'));
|
|
94
|
+
try {
|
|
95
|
+
const archive = join(temporary, 'upstream.tgz');
|
|
96
|
+
writeFileSync(archive, bytes);
|
|
97
|
+
execFileSync('tar', ['-xzf', archive, '-C', temporary, 'package/lib', 'package/browser', 'package/LICENSE', 'package/package.json']);
|
|
98
|
+
const extracted = join(temporary, 'package');
|
|
99
|
+
const files = Object.fromEntries(filesUnder(extracted).map(file => [file, readFileSync(join(extracted, file))]));
|
|
100
|
+
delete files['lib/main.js']; // CLI output handler is not part of this library distribution.
|
|
101
|
+
files['upstream-package.json'] = files['package.json'];
|
|
102
|
+
files['package.json'] = Buffer.from(jsonText(libraryManifest(JSON.parse(files['package.json']))));
|
|
103
|
+
return files;
|
|
104
|
+
} finally { rmSync(temporary, { recursive: true, force: true }); }
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
|
|
108
|
+
const mode = process.argv[2] ?? '--check';
|
|
109
|
+
if (!['--check', '--verify-upstream', '--refresh'].includes(mode)) throw new Error('Expected --check, --verify-upstream or --refresh');
|
|
110
|
+
if (mode !== '--check') {
|
|
111
|
+
const files = await upstreamFiles();
|
|
112
|
+
if (mode === '--refresh') {
|
|
113
|
+
if (existsSync(join(root, vendor))) checkVendor();
|
|
114
|
+
for (const [file, bytes] of Object.entries(files)) {
|
|
115
|
+
const target = join(root, vendor, file);
|
|
116
|
+
mkdirSync(dirname(target), { recursive: true }); writeFileSync(target, bytes);
|
|
117
|
+
}
|
|
118
|
+
writeFileSync(join(root, vendor, 'SOURCE.json'), jsonText({
|
|
119
|
+
upstream,
|
|
120
|
+
modification: 'Retain unmodified library/browser source and license; omit CLI, build/test files and argparse dependency. Custom package metadata only.',
|
|
121
|
+
files: Object.fromEntries(Object.keys(files).sort().map(file => [file, digest(files[file])])),
|
|
122
|
+
}));
|
|
123
|
+
execFileSync('npm', ['pack', '--ignore-scripts', '--pack-destination', join(root, 'vendor')], { cwd: join(root, vendor), stdio: 'pipe' });
|
|
124
|
+
writeFileSync(join(root, distributionPath), jsonText({ file: archiveName, sha256: digest(readFileSync(join(root, 'vendor', archiveName))) }));
|
|
125
|
+
} else {
|
|
126
|
+
for (const [file, bytes] of Object.entries(files)) assert.equal(digest(readFileSync(join(root, vendor, file))), digest(bytes), `Upstream differs: ${file}`);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
console.log(JSON.stringify(checkVendor(), null, 2));
|
|
130
|
+
}
|
|
@@ -137,6 +137,14 @@ const requiredFiles = [
|
|
|
137
137
|
'docs/RELEASE_NOTES_v0.9.2.en.md',
|
|
138
138
|
'docs/UPGRADE_v0.9.2.md',
|
|
139
139
|
'docs/UPGRADE_v0.9.2.en.md',
|
|
140
|
+
'docs/RELEASE_NOTES_v0.9.3.md',
|
|
141
|
+
'docs/RELEASE_NOTES_v0.9.3.en.md',
|
|
142
|
+
'docs/UPGRADE_v0.9.3.md',
|
|
143
|
+
'docs/UPGRADE_v0.9.3.en.md',
|
|
144
|
+
'docs/RELEASE_NOTES_v0.9.4.md',
|
|
145
|
+
'docs/RELEASE_NOTES_v0.9.4.en.md',
|
|
146
|
+
'docs/UPGRADE_v0.9.4.md',
|
|
147
|
+
'docs/UPGRADE_v0.9.4.en.md',
|
|
140
148
|
'docs/RELEASE_NOTES_v0.6.1.md',
|
|
141
149
|
'docs/RELEASE_NOTES_v0.6.0.md',
|
|
142
150
|
'docs/CHANGELOG.md',
|
|
@@ -30,6 +30,9 @@ function verifyGitBoundary() {
|
|
|
30
30
|
run('git', ['add', '.'], repoDir);
|
|
31
31
|
run('git', ['commit', '-q', '-m', 'chore: verify oss export'], repoDir);
|
|
32
32
|
const files = output('git', ['ls-files'], repoDir).trim().split(/\r?\n/).filter(Boolean);
|
|
33
|
+
if (!files.includes('vendor/bailinghub-mammoth-library-1.12.0-bailinghub.1.tgz')) {
|
|
34
|
+
throw new Error('OSS git export must retain the local DOCX library archive');
|
|
35
|
+
}
|
|
33
36
|
const gitignore = readFileSync(join(repoDir, '.gitignore'), 'utf8');
|
|
34
37
|
const requiredGitignoreRules = [
|
|
35
38
|
'.oss-dist/',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-- Keep native channels separate from executor notification targets. Legacy rows
|
|
2
|
+
-- stay unclassified until their original job can be checked by Core.
|
|
3
|
+
ALTER TABLE `bz_delivery_dlq`
|
|
4
|
+
ADD COLUMN `delivery_kind` VARCHAR(24) DEFAULT NULL,
|
|
5
|
+
ADD COLUMN `notification_job_id` VARCHAR(191) DEFAULT NULL,
|
|
6
|
+
ADD COLUMN `executor_replay_key` VARCHAR(191) DEFAULT NULL;
|
|
7
|
+
|
|
8
|
+
ALTER TABLE `bz_jobs`
|
|
9
|
+
ADD COLUMN `delivery_replay_keys` JSON DEFAULT NULL
|
|
10
|
+
COMMENT 'Core-owned notification DLQ queue markers, never business metadata';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
-- Intentions are committed beside their owning Job or approval, before delivery.
|
|
2
|
+
CREATE TABLE IF NOT EXISTS `bz_notification_outbox` (
|
|
3
|
+
`event_id` VARCHAR(191) NOT NULL,
|
|
4
|
+
`kind` VARCHAR(32) NOT NULL,
|
|
5
|
+
`job_id` VARCHAR(191) NOT NULL,
|
|
6
|
+
`request_id` VARCHAR(191) NOT NULL,
|
|
7
|
+
`payload_json` JSON NOT NULL,
|
|
8
|
+
`status` VARCHAR(24) NOT NULL DEFAULT 'pending',
|
|
9
|
+
`recovery` VARCHAR(16) NOT NULL DEFAULT 'retry',
|
|
10
|
+
`attempts` INT UNSIGNED NOT NULL DEFAULT 0,
|
|
11
|
+
`cycle_attempts` INT UNSIGNED NOT NULL DEFAULT 0,
|
|
12
|
+
`available_at` DATETIME(3) NOT NULL,
|
|
13
|
+
`lease_token` VARCHAR(64) DEFAULT NULL,
|
|
14
|
+
`lease_owner` VARCHAR(191) DEFAULT NULL,
|
|
15
|
+
`lease_until` DATETIME(3) DEFAULT NULL,
|
|
16
|
+
`last_error` VARCHAR(96) DEFAULT NULL,
|
|
17
|
+
`created_at` DATETIME(3) NOT NULL,
|
|
18
|
+
`updated_at` DATETIME(3) NOT NULL,
|
|
19
|
+
`completed_at` DATETIME(3) DEFAULT NULL,
|
|
20
|
+
PRIMARY KEY (`event_id`),
|
|
21
|
+
KEY `idx_notification_due` (`kind`,`status`,`available_at`),
|
|
22
|
+
KEY `idx_notification_lease` (`kind`,`status`,`lease_until`),
|
|
23
|
+
KEY `idx_notification_job` (`job_id`)
|
|
24
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|
|
25
|
+
|
|
26
|
+
ALTER TABLE `bz_delivery_dlq`
|
|
27
|
+
ADD COLUMN `event_id` VARCHAR(191) DEFAULT NULL,
|
|
28
|
+
ADD UNIQUE KEY `uk_delivery_dlq_event` (`event_id`);
|
package/sql/README.en.md
CHANGED
|
@@ -62,3 +62,17 @@ For incompatible changes, use a transition window and document the upgrade path.
|
|
|
62
62
|
## Naming
|
|
63
63
|
|
|
64
64
|
Use `NNN_short_description.sql` with three-digit increasing numbers. Gaps are allowed. New files should use the current maximum number plus one.
|
|
65
|
+
|
|
66
|
+
## Core 0.9.3: migration 067 for notification DLQ replay
|
|
67
|
+
|
|
68
|
+
`067_delivery_dlq_replay.sql` adds DLQ `delivery_kind`, `notification_job_id`, `executor_replay_key` and Job `delivery_replay_keys` for original notification binding and separate admission markers. Legacy rows remain without bulk-guessing kinds. Replay verifies the original notification child rather than rerunning its business parent.
|
|
69
|
+
|
|
70
|
+
Explicitly apply 067 before all new Core MySQL DLQ reads/writes, including native-channel record/get, and match state/config adapters. Startup does not migrate. Rollback retains queues, markers and history. Older artifact schema manifests do not automatically accept 067; verify in an isolated copy without clearing markers to replay or deleting migration rows to bypass checks. See the [0.9.3 upgrade guide](../docs/UPGRADE_v0.9.3.en.md).
|
|
71
|
+
|
|
72
|
+
## Core 0.9.4: migration 068 for durable notifications
|
|
73
|
+
|
|
74
|
+
`068_notification_outbox.sql` creates `bz_notification_outbox` for notification intents, frozen snapshots, retries and leases; it adds nullable `event_id` and a unique index to `bz_delivery_dlq`. Migration 067 and earlier SQL remain unchanged. Historical completed tasks and old approvals are not backfilled as new notifications.
|
|
75
|
+
|
|
76
|
+
Explicitly apply 068 to the actual state and configuration databases before new Core MySQL Job/approval writes or notification reads/writes. `npm run db:init` handles only `state.mysql`; use official `migrateBailingHubCoreSchema` separately for an independent MySQL configuration database, or migrate once when shared. JSONL state needs no SQL, but its MySQL configuration database still needs migration. Startup never migrates automatically.
|
|
77
|
+
|
|
78
|
+
Rollback preserves outbox, dead-letter links, replay markers, receipts and migration history. Old code does not process the new outbox, and old manifests may reject 068. Stop writers and validate a consistent recovery combination in isolation; never delete migration history to bypass checks. Restoring backups cannot undo sent messages. See the [0.9.4 upgrade guide](../docs/UPGRADE_v0.9.4.en.md) and [durable notifications](../docs/NOTIFICATION_DURABILITY.en.md).
|
package/sql/README.md
CHANGED
|
@@ -80,3 +80,17 @@ Host 需把官方 SQL 一起打包,并通过现有迁移入口显式执行;
|
|
|
80
80
|
## 命名
|
|
81
81
|
|
|
82
82
|
`NNN_简短描述.sql`,三位编号递增。编号只用于排序,**允许缺号**;新文件取当前最大编号 +1 即可。
|
|
83
|
+
|
|
84
|
+
## Core 0.9.3:067 通知死信重投
|
|
85
|
+
|
|
86
|
+
`067_delivery_dlq_replay.sql` 增加 DLQ 的 `delivery_kind`、`notification_job_id`、`executor_replay_key` 及 Job 的 `delivery_replay_keys`,保存原通知绑定和独立入队标记。旧行保留,不批量猜测类型;重投时核对原通知子任务,不能重跑业务父任务。
|
|
87
|
+
|
|
88
|
+
启动新 Core 的全部 MySQL DLQ 读写前显式应用 067,包含原生渠道 record/get,并配套 state/config 仓储。运行时不自动迁移。回退保留队列、标记和账本;旧制品 schema manifest 不保证接受 067,须在隔离副本核验,不能删标记重投或删迁移记录绕过检查。见[0.9.3 升级指南](../docs/UPGRADE_v0.9.3.md)。
|
|
89
|
+
|
|
90
|
+
## Core 0.9.4:068 持久通知
|
|
91
|
+
|
|
92
|
+
`068_notification_outbox.sql` 新建 `bz_notification_outbox`,保存通知意图、冻结快照、重试和租约;为 `bz_delivery_dlq` 增加可空 `event_id` 与唯一索引。067 及以前 SQL 保持原样,不把历史已完成任务或旧审批回填为新通知。
|
|
93
|
+
|
|
94
|
+
新 Core 的 MySQL 任务/审批写入和通知读写之前,向实际状态库及配置库显式应用 068。`npm run db:init` 只处理 `state.mysql`;独立 MySQL 配置库须额外使用官方 `migrateBailingHubCoreSchema` 入口,共库仅迁移一次。JSONL 状态无需 SQL,但其 MySQL 配置库仍需迁移。运行时不自动迁移。
|
|
95
|
+
|
|
96
|
+
回退保留 outbox、死信关联、重投标记、回执及迁移账本;旧代码不处理新 outbox,旧 manifest 可能拒绝 068。先停写并在隔离副本验证一致恢复组合,不能删除账本绕过检查,备份恢复也不能撤销已发送的消息。详见 [0.9.4 升级指南](../docs/UPGRADE_v0.9.4.md)及[通知持久化](../docs/NOTIFICATION_DURABILITY.md)。
|
|
@@ -79,3 +79,62 @@ test('buildFileContext: PDF 文本型文档可本地抽取并审计 parser/pages
|
|
|
79
79
|
assert.equal(audits[0]?.detail['parser'], 'pdf');
|
|
80
80
|
assert.equal(audits[0]?.detail['pages'], 1);
|
|
81
81
|
});
|
|
82
|
+
|
|
83
|
+
test('buildFileContext: 超限声明不读取正文,不运行解析器', async () => {
|
|
84
|
+
let pulls = 0;
|
|
85
|
+
let cancels = 0;
|
|
86
|
+
const audits: Array<{ event: string; detail: Record<string, unknown> }> = [];
|
|
87
|
+
const got = await withMockFetch(() => new Response(new ReadableStream<Uint8Array>({
|
|
88
|
+
pull(controller) { pulls++; controller.enqueue(new Uint8Array(1024)); },
|
|
89
|
+
cancel() { cancels++; },
|
|
90
|
+
}, { highWaterMark: 0 }), { headers: { 'content-type': 'text/plain', 'content-length': '1025' } }),
|
|
91
|
+
() => buildFileContext({ files: [{ url: 'https://synthetic.invalid/a.txt' }],
|
|
92
|
+
config: { mode: 'extract', max_bytes: 1024 }, audit: (event, detail) => audits.push({ event, detail }) }));
|
|
93
|
+
assert.match(got, /文件过大/);
|
|
94
|
+
assert.equal(pulls, 0);
|
|
95
|
+
assert.equal(cancels, 1);
|
|
96
|
+
assert.equal(audits[0]!.detail.ok, false);
|
|
97
|
+
assert.equal(audits[0]!.detail.parser, undefined);
|
|
98
|
+
assert.equal(audits[0]!.detail.bytes, undefined, 'declared length is not consumed bytes');
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
test('buildFileContext: 无长度/低报长度均流式停止,半截文件不注入', async () => {
|
|
102
|
+
for (const declared of [false, true]) {
|
|
103
|
+
let pulls = 0;
|
|
104
|
+
let cancels = 0;
|
|
105
|
+
const audits: Array<{ event: string; detail: Record<string, unknown> }> = [];
|
|
106
|
+
const got = await withMockFetch(() => new Response(new ReadableStream<Uint8Array>({
|
|
107
|
+
pull(controller) { pulls++; controller.enqueue(new Uint8Array(pulls === 1 ? 1024 : 1).fill(65)); },
|
|
108
|
+
cancel() { cancels++; },
|
|
109
|
+
}, { highWaterMark: 0 }), { headers: { 'content-type': 'text/plain', ...(declared ? { 'content-length': '1' } : {}) } }),
|
|
110
|
+
() => buildFileContext({ files: [{ url: 'https://synthetic.invalid/a.txt' }],
|
|
111
|
+
config: { mode: 'extract', max_bytes: 1024 }, audit: (event, detail) => audits.push({ event, detail }) }));
|
|
112
|
+
assert.match(got, /文件过大/);
|
|
113
|
+
assert.equal(got.includes('AAAA'), false);
|
|
114
|
+
assert.equal(pulls, 2);
|
|
115
|
+
assert.equal(cancels, 1);
|
|
116
|
+
assert.equal(audits[0]!.detail.ok, false);
|
|
117
|
+
assert.equal(audits[0]!.detail.parser, undefined);
|
|
118
|
+
assert.equal(audits[0]!.detail.bytes, 1025);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
test('buildFileContext: 恰好达到预算的文件仍正常抽取', async () => {
|
|
123
|
+
const got = await withMockFetch(() => new Response('a'.repeat(1024)),
|
|
124
|
+
() => buildFileContext({ files: [{ url: 'https://synthetic.invalid/a.txt' }], config: { mode: 'extract', max_bytes: 1024 } }));
|
|
125
|
+
assert.equal(got.includes('a'.repeat(1024)), true);
|
|
126
|
+
assert.equal(got.includes('文件过大'), false);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
test('buildFileContext: HTTP 错误取消正文而不读取', async () => {
|
|
130
|
+
let cancels = 0;
|
|
131
|
+
let pulls = 0;
|
|
132
|
+
const got = await withMockFetch(() => new Response(new ReadableStream<Uint8Array>({
|
|
133
|
+
pull(controller) { pulls++; controller.enqueue(new Uint8Array(1024)); },
|
|
134
|
+
cancel() { cancels++; return new Promise<void>(() => undefined); },
|
|
135
|
+
}, { highWaterMark: 0 }), { status: 500 }),
|
|
136
|
+
() => buildFileContext({ files: [{ url: 'https://synthetic.invalid/a.txt' }], config: { mode: 'extract' } }));
|
|
137
|
+
assert.match(got, /文件下载失败(HTTP 500)/);
|
|
138
|
+
assert.equal(cancels, 1);
|
|
139
|
+
assert.equal(pulls, 0);
|
|
140
|
+
});
|
package/src/adapters/llm/file.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FileRef } from '../../core/platform/content';
|
|
2
2
|
import type { ResolvedCredential } from './perception';
|
|
3
|
+
import { cancelResponseBody, readResponseBody, ResponseBodyLimitError } from '../../core/platform/http-body';
|
|
3
4
|
|
|
4
5
|
export interface FileConfig {
|
|
5
6
|
/** 文件处理凭证名;留空复用 brain 凭证 */
|
|
@@ -153,10 +154,12 @@ async function fetchFile(file: FileRef, index: number, maxBytes: number): Promis
|
|
|
153
154
|
const name = fileName(file, index);
|
|
154
155
|
try {
|
|
155
156
|
const resp = await fetch(file.url, { signal: AbortSignal.timeout(FILE_TIMEOUT_MS) });
|
|
156
|
-
if (!resp.ok)
|
|
157
|
+
if (!resp.ok) {
|
|
158
|
+
cancelResponseBody(resp);
|
|
159
|
+
return { ok: false, name, text: `文件下载失败(HTTP ${resp.status}):${file.url}` };
|
|
160
|
+
}
|
|
157
161
|
const mime = String(resp.headers.get('content-type') ?? '').split(';')[0]!.trim().toLowerCase();
|
|
158
|
-
const ab = await resp
|
|
159
|
-
if (ab.byteLength > maxBytes) return { ok: false, name, mime, bytes: ab.byteLength, text: `文件过大(${ab.byteLength} bytes > ${maxBytes} bytes),未读取内容:${file.url}` };
|
|
162
|
+
const ab = await readResponseBody(resp, maxBytes);
|
|
160
163
|
const extracted = await extractFileText(file, mime, ab);
|
|
161
164
|
return {
|
|
162
165
|
ok: extracted.ok,
|
|
@@ -168,6 +171,10 @@ async function fetchFile(file: FileRef, index: number, maxBytes: number): Promis
|
|
|
168
171
|
text: extracted.text,
|
|
169
172
|
};
|
|
170
173
|
} catch (e) {
|
|
174
|
+
if (e instanceof ResponseBodyLimitError) {
|
|
175
|
+
return { ok: false, name, ...(e.source === 'stream' ? { bytes: e.observedBytes } : {}),
|
|
176
|
+
text: `文件过大(超过 ${maxBytes} bytes 上限),已停止下载:${file.url}` };
|
|
177
|
+
}
|
|
171
178
|
const isTimeout = (e as Error)?.name === 'TimeoutError';
|
|
172
179
|
return { ok: false, name, text: isTimeout ? `文件下载超时(${FILE_TIMEOUT_MS}ms):${file.url}` : `文件读取失败:${String(e).slice(0, 200)}` };
|
|
173
180
|
}
|
|
@@ -215,7 +222,7 @@ export async function buildFileContext(opts: {
|
|
|
215
222
|
: FILE_MODE_DEFAULT;
|
|
216
223
|
if (!opts.files.length || mode === 'off' || mode === 'inline') return '';
|
|
217
224
|
|
|
218
|
-
const maxBytes = Math.max(1024, Math.min(Number(cfg.max_bytes ?? FILE_MAX_BYTES_DEFAULT) || FILE_MAX_BYTES_DEFAULT, 100 * 1024 * 1024));
|
|
225
|
+
const maxBytes = Math.floor(Math.max(1024, Math.min(Number(cfg.max_bytes ?? FILE_MAX_BYTES_DEFAULT) || FILE_MAX_BYTES_DEFAULT, 100 * 1024 * 1024)));
|
|
219
226
|
const maxChars = Math.max(1000, Math.min(Number(cfg.max_chars ?? FILE_MAX_CHARS_DEFAULT) || FILE_MAX_CHARS_DEFAULT, 200000));
|
|
220
227
|
const lines: string[] = [];
|
|
221
228
|
const perFileChars = Math.max(1000, Math.floor(maxChars / Math.max(1, opts.files.length)));
|
|
@@ -616,7 +616,9 @@ test('Agent direct: transport uncertainty and lost client receipts resume the or
|
|
|
616
616
|
attempts++;
|
|
617
617
|
if (failure === 'fetch_rejected') throw new TypeError('synthetic transport failure');
|
|
618
618
|
if (failure === 'client_receipt_lost') return new Response('{"ok":true}', { status: 200 });
|
|
619
|
-
return
|
|
619
|
+
return new Response(new ReadableStream({
|
|
620
|
+
start(controller) { controller.error(new TypeError('synthetic response body loss')); },
|
|
621
|
+
}), { status: 200 });
|
|
620
622
|
});
|
|
621
623
|
const fx = fixture('https://business.invalid');
|
|
622
624
|
if (kind === 'idempotent_write') {
|
|
@@ -15,7 +15,7 @@ const enabled = process.env.BAILING_APPROVAL_CONTINUATION_TEST_MYSQL === '1';
|
|
|
15
15
|
|
|
16
16
|
async function fixture() {
|
|
17
17
|
const database = `approval_acceptance_${randomUUID().replaceAll('-', '')}`;
|
|
18
|
-
const mysql = { host: '127.0.0.1', port: 16307, user: 'root', password: '', database, connectionLimit: 8 };
|
|
18
|
+
const mysql = { host: '127.0.0.1', port: Number(process.env.BAILING_APPROVAL_CONTINUATION_TEST_MYSQL_PORT ?? 16307), user: 'root', password: '', database, connectionLimit: 8 };
|
|
19
19
|
const admin = createPool({ ...mysql, database: undefined });
|
|
20
20
|
await admin.query(`CREATE DATABASE \`${database}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);
|
|
21
21
|
const pool = createPool({ ...mysql, timezone: 'Z' });
|