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:
1 parent
68c4f8c822
commit
1637acce6e
14 files changed
+389
-45
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user