refactor(examples): give TUI its own agent leaf

This commit is contained in:
Tianyi Cui
2026-07-19 01:09:20 +08:00
parent 8e366c3071
commit bea6a74ea0
18 files changed
+159 -25

No files matched your search

+4 -8
View File
@@ -1,7 +1,6 @@
# Coding agent with swappable DeepSeek and local-bash backends. `dsh-stdio-demo`
# supplies the agent spine, workspace instructions, generic task controls,
# JSONL persistence, TTY-selected `dsh-tui`/`dsh-stdio` terminal front doors,
# readline logging, and `main` agent.
# Readline coding REPL with swappable DeepSeek and local-bash backends.
# `dsh-stdio-demo` supplies the agent spine, workspace instructions, generic
# task controls, JSONL persistence, the line-oriented front door, and `main`.
# HMR remains a leaf because it requires Loader internals; `demo:repl` passes
# `--expose-internals`. The app bin loads the gitignored root `.env`; this file
# reads `DEEPSEEK_API_KEY` and optional `DEEPSEEK_BASE_URL` through `!!js`.
@@ -39,10 +38,7 @@
maxBytes: 65536
welcome: 'agent REPL ready. Give it a coding task.'
ui:
mode: auto
tui:
showReasoning: true
maxToolOutputLines: 12
mode: readline
# Keep the persona to identity and behavior; tool plugins own tool guidance.
# The loop resolves {{model}} from this agent's configuration.
persona: |