feat: .ai 子指令 help 展示子指令帮助 - #120
Closed
error2913 wants to merge 6 commits into
Closed
Conversation
- 根命令分发处拦截 .ai <子指令> help(无更多参数时),展示该子指令 desc+help,不校验权限,与 .ai help <子指令> 行为一致 - 带更多参数时仍交由子指令自身处理(如 .ai tool help <函数名> 查看工具详情不受影响) - 补齐所有已注册子指令的 cmd.help 用法说明(prompt/status/standby/off/forget/role/image/memory/kb/tool/ignore/token/shut/block) - 同步 README、docs/05-命令与配置、docs/07-开发指南
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.
变更
.ai <子指令> help现在可以直接查看对应子指令的帮助:help作为子指令的第一个参数(不带更多参数时),输出【.ai <子指令>】desc + help,不校验权限,与.ai help <子指令>行为一致;.ai tool help <函数名>等既有用法不受影响;cmd.help(此前大多为空,.ai help <子指令>只能看到一行 desc)。改动文件
src/cmd/root_cmd.ts:根命令分发处拦截.ai <子指令> helpsrc/cmd/sub_cmd/*.ts:14 个子指令补齐cmd.help用法说明README.md、docs/05-命令与配置.md、docs/07-开发指南.md:同步文档验证
npm run lint/npx tsc --noEmit/npm run smoke/npm run package:check均通过