Implement streaming S0-S2: SSE complete, step/plan events.

Add net/llm SSE primitives and optional stream/echo/trace on step and plan so callers can watch deltas and rounds without changing final return values.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-10 11:03:04 +08:00
1 parent 5456d9ff83
commit b6bb42e460
18 files changed
+809 -64

No files matched your search

+32
View File
@@ -1363,6 +1363,38 @@ fn lib_net_encode() {
assert_out("tests/lib/net-encode.mq.md", "a+b");
}
#[test]
fn lib_net_openai_sse() {
assert_out(
"tests/lib/net-openai-sse.mq.md",
"Hel
lo
Hello",
);
}
#[test]
fn ext_llm_stream_offline() {
assert_out("tests/ext/llm-stream-offline.mq.md", "Hi!");
}
#[test]
fn ext_agent_plan_stream_offline() {
assert_out(
"tests/ext/agent-plan-stream-offline.mq.md",
"4
round
delta
Hi
decision
done
child
pending
1
done",
);
}
#[test]
fn lib_math_formula() {
assert_out(