Repository navigation
新增斜杠命令菜单、统一注册表与参数补全 - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动说明
解决输入
/时无法发现可用命令的问题:自动展示命令及说明,支持前缀过滤、方向键选择、Tab 补全和 Esc 关闭。选中候选后首次 Enter 确认补全,再次 Enter 提交。/help组合动态命令列表、命令示例与静态使用说明,补回/review示例、项目约定文件和子 Agent 输出提示,使用加粗章节标题。examples,独立commands/help.py负责组合和展示帮助;注册表只管理命令,说明文本不会被当作 Rich 标记解析。上游命令兼容
/history、/resume接入统一注册表,使它们出现在斜杠菜单、命令名补全和/help中,并通过统一分发器调用上游原有处理逻辑。/new的记录器切换逻辑,兼容已有历史记录与续聊功能。验证
59613ee的本地完整回归:执行python -m pytest -q,222 项通过,35 条依赖弃用警告。运行时已暂存工作区中未提交的会话增强测试草稿;这些草稿未参与此次回归,也不在本 PR 中。当前边界
本次复用上游已有的历史记录与会话恢复能力,补充命令界面兼容,不包含额外的可靠恢复增强、Plan/Build 或审批升级。内置处理器目前通过
ctx.actions[name]适配 CLI,直接绑定处理函数的整理尚未实施。参数补全替换光标前的整个参数文本,适用于当前单参数候选,多参数局部替换需后续扩展。架构文档保留设计提案,部分目标结构尚未全部落地。