fix: support multiple keys per action and harden runtime/parsing

This commit is contained in:
2026-08-14 10:59:25 -06:00
parent 7e3377f932
commit 733bc2b4f9
10 changed files with 180 additions and 87 deletions
+7
View File
@@ -22,3 +22,10 @@ test("parseSse joins multi-line data fields with newline", () => {
assert.equal(messages.length, 1);
assert.equal(messages[0].data, "line1\nline2");
});
test("parseSse normalizes CRLF-delimited events", () => {
const { messages, rest } = parseSse("data:hello\r\n\r\n");
assert.equal(rest, "");
assert.equal(messages.length, 1);
assert.equal(messages[0].data, "hello");
});