Initial commit of Stalwart MCP Server

This commit is contained in:
2026-06-06 08:14:23 +02:00
commit e667786d02
4014 changed files with 927294 additions and 0 deletions

30
node_modules/eventsource-parser/dist/stream.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
import { createParser } from "./index.js";
import { ParseError } from "./index.js";
class EventSourceParserStream extends TransformStream {
constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
let parser;
super({
start(controller) {
parser = 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);
}
});
}
}
export {
EventSourceParserStream,
ParseError
};
//# sourceMappingURL=stream.js.map