- CommandContext增加commandRegistry字段 - HelpCommand从registry动态获取命令列表(不再硬编码6个) - 自动对齐命令名称,附显示别名 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
19 lines
374 B
Java
19 lines
374 B
Java
package com.claudecode.command;
|
|
|
|
import com.claudecode.core.AgentLoop;
|
|
import com.claudecode.tool.ToolRegistry;
|
|
|
|
import java.io.PrintStream;
|
|
|
|
/**
|
|
* 命令执行上下文。
|
|
*/
|
|
public record CommandContext(
|
|
AgentLoop agentLoop,
|
|
ToolRegistry toolRegistry,
|
|
CommandRegistry commandRegistry,
|
|
PrintStream out,
|
|
Runnable exitCallback
|
|
) {
|
|
}
|