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

+8 -1
View File
@@ -37,8 +37,15 @@ Load `.env` (optional named arg `path=`). Existing process env is not overridden
## exec
+ `cmd`
+ `args`=None
+ `capture`=False
**> host_exec cmd=`cmd` args=`args`**
Run a process. Default return is the exit code (int).
With `capture=True`, return a map `{code, stdout, stderr}` (stdout/stderr may be truncated for huge output).
Inside `*…*` prefer bare `args=args` (variable); `` args=`args` `` is also accepted.
**> host_exec cmd=`cmd` args=`args` capture=`capture`**
## stream_publish
+ `event`
+8 -1
View File
@@ -37,8 +37,15 @@ description: 中文系统包装(加载环境 可选 路径=)
## 执行
+ `命令`
+ `参数`=None
+ `捕获`=False
**> host_exec cmd=`命令` args=`参数`**
运行子进程。默认返回退出码(整数)。
`捕获=True` 时返回映射 `{code, stdout, stderr}`(过大输出可能截断)。
在 `*…*` 内优先写裸变量 `参数=参数`;`` 参数=`参数` `` 亦可。
**> host_exec cmd=`命令` args=`参数` capture=`捕获`**
## 发布流事件
+ `事件`