优化 CLI 触发提示并修复工具配置#36
Open
xlz-star wants to merge 6 commits into
Open
Conversation
实现 ! 前缀系统命令执行能力,支持 CLI、Web 和桌面 WebSocket 入口。 命令会按当前平台选择合适 shell,加载 zsh/bash/fish/PowerShell/cmd 的用户环境,并将执行结果写入会话上下文。 新增 ShellCommandSupportTest 覆盖命令识别、上下文注入、空命令、shell rc/profile 加载以及 Windows PATH 合并逻辑。 已验证:ShellCommandSupportTest 通过、跳过测试打包通过,并完成 CLI 与 Web 端 !command -v rtk 实测。
参考 Codex CLI 的输入体验,增强 /、@、$、! 在终端输入中的即时提示效果。 @ 改为工作区文件提示,$ 保持技能提示,/ 保持命令与模型提示,! 增加本地命令模式入口。 补充删除触发符时关闭候选提示的逻辑,并更新开屏 Tips 文案。
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.
变更说明
!本地命令能力。disallowedTools现在读取soloncode.disallowedTools,不再把 allowed tools 错加到禁用列表。do you wish to see all possibilities。@文件补全因候选过多时无法显示完整,且 JLine 当前无法通过上下键翻页,已回退为仅支持@agent补全,不再扫描文件。验证
mvn -pl soloncode-cli clean -Dmaven.compiler.proc=full -Dtest=CliCompleterTest,CliShellTest,ShellCommandSupportTest test