fix: GAP-06–10 parser, invoke Null, exec capture, SSE headers

Recover ## bodies after bad *…* terminators; bracket-aware call args;
invoke Null is 500 not fake ok; sys.exec capture={code,stdout,stderr};
proxy stream sets anti-buffer headers.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-09 13:58:02 +08:00
1 parent 68c4f8c822
commit 1637acce6e
14 files changed
+389 -45

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
---
title: sys.exec capture=True returns stdout map
description: GAP-09 optional capture.
import sys:lib/sys.mq.md
import json:lib/json.mq.md
---
# main
*code = > sys.exec cmd="true"*
1. `code` == 0
> print text=exec-code-ok
2. *
> print text=exec-code-fail
*args = > json.parse text=["-c","printf hi-capture"]*
*out = > sys.exec cmd="sh" args=args capture=True*
*c = out[^code]*
*s = out[^stdout]*
1. `c` == 0
> print text=capture-code-ok
2. *
> print text=capture-code-fail
1. `s` == "hi-capture"
> print text=capture-stdout-ok
2. *
> print text=capture-stdout-fail