fix(cli): flat builds point commands at plugin folders they do not ship
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- cli
调研方向
阅读cli/src/contexts/translate/application/strategies/flat-build-strategy.ts,先查看resolveSuffixToFlatPath以及将文件夹复制到扁平化输出中的代码。检查命令路径如何重写,以及哪些文件夹会被复制。当引用bin/或scripts/等文件夹的命令指向扁平化输出中存在的文件时,即表示完成;目前没有仓库插件覆盖此情况。
由索引模型根据 Issue 内容生成。
描述
Description
A flat build (aidd translate --to <tool>) rewrites ${CLAUDE_PLUGIN_ROOT}/<path> in a plugin's MCP and hook commands to <out>/<path>, but it copies only agents/, skills/ and hooks/. A command that names any other folder, for example an MCP server under bin/ or a script under scripts/, points at a file the build never wrote.
Affected file(s)
cli/src/contexts/translate/application/strategies/flat-build-strategy.ts (resolveSuffixToFlatPath, which returns the suffix unchanged for any other folder)
Expected behaviour
Every path a shipped command names exists in the flat output: the referenced folder is copied next to the others.
Observed behaviour
The path is rewritten, the folder is not copied, and the command fails at runtime on the target tool. The rest of the plugin still works, so nothing reports it.
AI tool
Other: every flat host (Codex, Kilo, OpenCode, and the others built through the flat strategy).
OS
macOS, Linux, Windows.
Additional context
- Failing the build on such a reference was considered and rejected: it would break a third-party plugin whose other surfaces work today.
- No plugin in this repository references such a folder today.
- Found while reviewing the hook path work in #1158.
- 主要语言
- TypeScript
- 星标
- 481
- 派生
- 45
- 平均合并
- 23 小时 18 分钟
- 30 天内合并 PR
- 106
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ai-driven-dev/framework 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
ai-driven-dev/framework#1163 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ai-driven-dev/framework#1147 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
ai-driven-dev/framework#1118 ·
维护者通常 1 天内回复
-
docs(framework): explain how a contributor without push access opens a pull request可能重新可做 @sadhana-s-codez 于 9 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
ai-driven-dev/framework#1117 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
ai-driven-dev/framework#1112 · 1 条评论 ·
维护者通常 1 天内回复
查看 ai-driven-dev/framework 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
"Claude Code request is missing its initial user message" when the prompt starts with an image path未关闭
难度 2/5 1-3 小时 新手友好度 84/100
earendil-works/pi-claude-code#31 ·
维护者通常 8 天内回复
-
bug pending triage
难度 1/5 1 小时以内 新手友好度 92/100
privatenumber/cleye#48 ·
-
Google text documents are base64-encoded twice可能已有人在做 @feiiiiii5 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复