feat: add markdown module header and async bash execution result structs

Introduce `include/markdown.h` with retoor copyright header and add `r_process_result_t` struct plus `r_bash_execute_ext` / `r_process_result_free` declarations to `include/bash_executor.h` for advanced async process handling.
This commit is contained in:
2026-01-29 05:54:10 +00:00
parent 8215d7012d
commit dccd79c05a
98 changed files with 6682 additions and 817 deletions
+36
View File
@@ -0,0 +1,36 @@
TASK: Get the last 5 git commit messages and summarize the changes in 'git_summary.md'.
----------------------------------------
Loading...
[Agent] Iteration 1/300
[Agent] has_tool_calls=true
[Agent] Executing 1 tool(s)
[Agent] Spawning developer agent for: Retrieve the last 5 git commit messages and generate a summary of the changes, saving it to 'git_summary.md'.
[parallel] launching spawn_agent
[Tool Error] Error: Spawning limit reached. You are not allowed to spawn more sub-agents. Perform the task yourself using existing tools.
[Agent] Iteration 2/300
The task to retrieve the last 5 git commit messages and summarize the changes cannot be delegated further due to the spawning limit. I will now perform these steps directly using available tools.
[Agent] has_tool_calls=false
[Agent] Response indicates incomplete work, auto-continuing
[Agent] Iteration 3/300
[Agent] has_tool_calls=true
[Agent] Executing 1 tool(s)
-> Executing Python code
[parallel] launching python_execute
 File "/tmp/r_python_tool_GZjld6.py", line 16
f.write(""""\n""" + summary_text + """"\n")
^
SyntaxError: unterminated triple-quoted string literal (detected at line 16)
[Agent] Iteration 4/300
It appears there was a syntax error in the code I provided. I will correct it and re-execute the script to generate the summary in git_summary.md.
[Agent] has_tool_calls=false
[Agent] Response indicates incomplete work, auto-continuing
[Agent] Iteration 5/300
[Agent] has_tool_calls=true
[Agent] Executing 1 tool(s)
-> Executing Python code
[parallel] launching python_execute
[Agent] Iteration 6/300
The script has been corrected and executed successfully. The last 5 git commit messages have been summarized and saved in git_summary.md. If you want to review the file or need further assistance, please let me know!
[Agent] has_tool_calls=false
[Agent] Completed in 6 iteration(s)