fix: /help命令动态展示全部28个已注册命令

- CommandContext增加commandRegistry字段
- HelpCommand从registry动态获取命令列表(不再硬编码6个)
- 自动对齐命令名称,附显示别名

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
liuzh
2026-04-02 00:01:11 +08:00
co-authored by Copilot
parent 031a868286
commit 831461aff0
4 changed files with 283 additions and 15 deletions
@@ -11,6 +11,7 @@ import java.io.PrintStream;
public record CommandContext(
AgentLoop agentLoop,
ToolRegistry toolRegistry,
CommandRegistry commandRegistry,
PrintStream out,
Runnable exitCallback
) {