Skills in a workspace fall back to each package when one member's package.json has a BOM or does not parse
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
调研方向
Start with packages/cli/src/lib/skills/workspace-members.ts and trace how @manypkg/tools handles workspace member manifests; check the skills sync and init paths that consume the member list. Reproduce with a workspace member whose package.json has a BOM or invalid JSON. Done when one bad manifest does not hide other members and the affected skills commands report a diagnostic instead of silently using the member directory.
由索引模型根据 Issue 内容生成。
描述
What happens
In a pnpm or npm workspace, a single member whose package.json starts with a byte order mark (BOM), or does not parse as JSON, makes the CLI treat the whole workspace as having no members.
packages/cli/src/lib/skills/workspace-members.ts lists members with @manypkg/tools, which throws on that file. The CLI then anchors agent skills at the current directory in every package, as it did before 8.0.0-rc.38:
prisma skills syncrun in any member writes skill copies into that member, not the workspace root;- the out-of-date notice reads the member's own copies;
prisma initin a member writes thepostinstallhook there, unless a parentprisma.config.tsgoverns it.
Nothing tells the user why.
Reproduction
- A pnpm workspace with
pnpm-workspace.yamllistingpackages/*, two memberspackages/aandpackages/b, and a.gitdirectory at the root. - Save
packages/b/package.jsonwith a UTF-8 BOM (or break its JSON). - In
packages/a, runprisma skills sync. Expected: copies under the workspace root. Actual: copies underpackages/a.
Expected
Listing members tolerates a BOM, and one unreadable member manifest does not drop every member. If a member cannot be read, the skills commands report it with a diagnostic, not silently fall back.
Found while reviewing the fix for init --postinstall in a workspace member.
- 主要语言
- TypeScript
- 星标
- 26
- 派生
- 4
- 平均合并
- 12 小时 11 分钟
- 30 天内合并 PR
- 38
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prisma/prisma-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
prisma/prisma-cli#416 ·
维护者通常 1 天内回复
-
service logs --tail accepts negative and fractional numbers可能重新可做 @somcpp 于 68 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
prisma/prisma-cli#309 · 1 条评论 ·
维护者通常 1 天内回复
-
The update notice tells users to install @prisma/cli and does not recognise a global prisma install未关闭
难度 2/5 1-3 小时 新手友好度 84/100
prisma/prisma-cli#306 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
prisma/prisma-cli#305 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
prisma/prisma-cli#302 ·
维护者通常 1 天内回复
查看 prisma/prisma-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
tashfeenahmed/freellmapi#2305 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
prime-radiant-inc/evener#8335 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
vercel-labs/ui#1921 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 65/100
microsoft/monaco-editor#5626 ·
维护者通常 1 天内回复