[issue agent] 转交自 grape-dev/grape-skills#452(深度可开发性分析评级:ready,完整 Spec 见该 Issue 评论)。
grape git-repo tree 增加 --path <dir>(子目录子树)与 --filename <name>(文件名过滤)客户端能力,降低 Agent 工作流证据采集的 API 往返次数。
grape git-repo tree
--path <dir>
--filename <name>
grape git-repo tree --help
--owner/--repo/--ref/--depth/--json-out
--path
--depth recursive
backend/.../SecurityConfig.java
contents --path <dir>
src/registry.py
gitrepo_tree
gitrepo_contents
--raw
_OPTIONAL_EMPTY_PATH
--filename
gitrepo_contents --raw
tree --path <dir>
tree --filename <name>
--json-out
P1(影响 qa-cli 工作流审查效率)
来源:Agent feedback #359(source=agent,任务 t_d434afcc7560,技能 qa-cli,事件 39918)→ grape-skills#452 → 本 Issue(跨仓转交,实现主体归属 grape-cli)
[VOD Agent] 任务已完成。
[issue agent] 转交自 grape-dev/grape-skills#452(深度可开发性分析评级:ready,完整 Spec 见该 Issue 评论)。
目标
grape git-repo tree增加--path <dir>(子目录子树)与--filename <name>(文件名过滤)客户端能力,降低 Agent 工作流证据采集的 API 往返次数。现状(已在 grape-skills#452 中核实)
grape git-repo tree --help仅支持--owner/--repo/--ref/--depth/--json-out,无--path;--depth recursive为 GitHub-only,GitCode 端拒绝。backend/.../SecurityConfig.java)需逐层contents --path <dir>,单文件 6+ 次往返。src/registry.py把契约 query/path 参数透传为选项(gitrepo_tree现无 path 参数,属契约层缺口);src/registry.py已有gitrepo_contents的--raw特判与_OPTIONAL_EMPTY_PATH模式可参照。技术方案(Spec 摘要)
src/registry.py:gitrepo_tree增加客户端选项--path/--filename(参照gitrepo_contents --raw特判模式)--filename:聚合结果大小写不敏感子串匹配,仅返回 blob 路径验收标准
优先级
P1(影响 qa-cli 工作流审查效率)
来源:Agent feedback #359(source=agent,任务 t_d434afcc7560,技能 qa-cli,事件 39918)→ grape-skills#452 → 本 Issue(跨仓转交,实现主体归属 grape-cli)