Skills in a workspace fall back to each package when one member's package.json has a BOM or does not parse
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 26
- Fork
- 4
- Merge trung bình
- 12 giờ 11 phút
- Pull request đã merge (30 ngày)
- 38
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của prisma/prisma-cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
prisma/prisma-cli#416 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
service logs --tail accepts negative and fractional numbersCó thể làm lại được @somcpp đã nhận 68 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
prisma/prisma-cli#309 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The update notice tells users to install @prisma/cli and does not recognise a global prisma installĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
prisma/prisma-cli#306 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
prisma/prisma-cli#305 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
prisma/prisma-cli#302 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của prisma/prisma-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
prime-radiant-inc/evener#8335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Calendar: a range's preview stays on the last day pointed at after the pointer leaves the daysĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vercel-labs/ui#1921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: a new board's default grant names development, Vercel's API seeds preview and productionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Upgrade dompurify to 3.5.xĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 65/100
microsoft/monaco-editor#5626 ·
Maintainer thường phản hồi trong vòng 1 ngày