Z User
phase7: MCP stdio smoke test (handshake + tools/list + get_roots 6:74) — 4/4 tests PASS
54a6341 Download node_modules/eventsource-parser/dist/stream.cjs from bravesigma/quran-md-plugin: direct link, hf CLI and curl.
- Browser
- Download file 905 Bytes
-
https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/eventsource-parser/dist/stream.cjs
- Command line
-
hf download hf://datasets/bravesigma/quran-md-plugin/node_modules/eventsource-parser/dist/stream.cjs
-
curl -L -o stream.cjs https://huggingface.co/datasets/bravesigma/quran-md-plugin/resolve/main/node_modules/eventsource-parser/dist/stream.cjs
905 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: !0 }); | |
| var index = require("./index.cjs"); | |
| class EventSourceParserStream extends TransformStream { | |
| constructor({ onError, onRetry, onComment, maxBufferSize } = {}) { | |
| let parser; | |
| super({ | |
| start(controller) { | |
| parser = index.createParser({ | |
| onEvent: (event) => { | |
| controller.enqueue(event); | |
| }, | |
| onError(error) { | |
| typeof onError == "function" && onError(error), (onError === "terminate" || error.type === "max-buffer-size-exceeded") && controller.error(error); | |
| }, | |
| onRetry, | |
| onComment, | |
| maxBufferSize | |
| }); | |
| }, | |
| transform(chunk) { | |
| parser.feed(chunk); | |
| } | |
| }); | |
| } | |
| } | |
| exports.ParseError = index.ParseError; | |
| exports.EventSourceParserStream = EventSourceParserStream; | |
| //# sourceMappingURL=stream.cjs.map | |