Plan parent-first decompose, reasoning streaming, TTY input editing.
Reorder non-hit plan pipeline so the parent decomposes before spawning the child, stream DeepSeek thinking (reasoning_content) to TTY, and add Unicode-aware line editing for interactive input to fix CJK backspace corruption. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b6bb42e460
commit
d1ddb74235
16 files changed
+606
-111
No files matched your search
@@ -8,7 +8,7 @@ description: extract_plan_decision/summary; dual skeleton contains research+writ
|
||||
|
||||
# main
|
||||
|
||||
*`samples` = > json.parse text={"done":"DECISION: DONE\nSUMMARY: all good\n","cont":"DECISION: CONTINUE\nPATCH:\n<<<\nFIND\nold\n===\nREPLACE\nnew\n>>>\n","zh":"决定:完成\n汇总:好了\n"} *
|
||||
*`samples` = > json.parse text={"done":"DECISION: DONE\nSUMMARY: all good\n","cont":"DECISION: CONTINUE\nPATCH:\n<<<\nFIND\nold\n===\nREPLACE\nnew\n>>>\n","zh":"决定:完成\n汇总:好了\n","run":"DECISION: RUN\n","zh_run":"决定:运行\n"} *
|
||||
*`d1` = > json.get value=`samples` key=done *
|
||||
*`r1` = > agent.extract_plan_decision reply=`d1` *
|
||||
> print text=`r1`
|
||||
@@ -23,6 +23,14 @@ description: extract_plan_decision/summary; dual skeleton contains research+writ
|
||||
*`r3` = > agent.extract_plan_decision reply=`d3` *
|
||||
> print text=`r3`
|
||||
|
||||
*`d4` = > json.get value=`samples` key=run *
|
||||
*`r4` = > agent.extract_plan_decision reply=`d4` *
|
||||
> print text=`r4`
|
||||
|
||||
*`d5` = > json.get value=`samples` key=zh_run *
|
||||
*`r5` = > agent.extract_plan_decision reply=`d5` *
|
||||
> print text=`r5`
|
||||
|
||||
*`dual` = > agent.render_workbook_skeleton goal=demo skeleton=dual *
|
||||
*`has_r` = > split value=`dual` sep=research *
|
||||
*`n_r` = > len value=`has_r` *
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
title: ext llm DeepSeek stream live
|
||||
description: Live SSE complete with echo; credentials from tests/ext/.env.
|
||||
> ext/ai/llm.mq.md
|
||||
> lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
> llm.load_env path=.env
|
||||
|
||||
*`model` = > llm.llm *
|
||||
|
||||
*`events` = > `model`.complete prompt=Reply with exactly one English word: pong stream=True echo=True *
|
||||
*`n` = > len value=`events` *
|
||||
> print text=`n`
|
||||
|
||||
*`answer` = > llm.stream_result events=`events` *
|
||||
> print text=`answer`
|
||||
Reference in new issue
Block a user