fix: quote the plugin path in the validate_layers.dart command

Đang mở Phù hợp với người mới
#43 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
85/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ệ
dart
Lĩnh vực
tooling

Hướng nghiên cứu

Đọc agents/ffca-layer-auditor.md quanh dòng 39 và skills/ffca-audit/SKILL.md quanh dòng 27 và 30. Đặt đường dẫn đến script của plugin trong dấu ngoặc kép ở mỗi lệnh được ghi lại để các đường dẫn có chứa khoảng trắng hoạt động. Kiểm tra cả ba lệnh và xác nhận rằng cách dùng dấu ngoặc kép nhất quán; issue cho biết job CI plugin-paths cũng có thể phát hiện các tham chiếu không có dấu ngoặc kép.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Description

The ffca-layer-auditor agent and the ffca-audit skill tell the model to run:

dart run ${CLAUDE_PLUGIN_ROOT}/scripts/validate_layers.dart --all

Claude Code substitutes the installed plugin path into that text.
When the path has a space, the command splits and dart run gets the wrong file.
claude plugin validate only checks hook files for this, so CI won't flag it.

It appears in:

  • agents/ffca-layer-auditor.md, line 39
  • skills/ffca-audit/SKILL.md, lines 27 and 30
Steps To Reproduce
  1. Load the plugin from a path with a space, e.g. the Claude desktop app on macOS (~/Library/Application Support/Claude/…).
  2. Run the ffca-audit skill in an FFCA repo.
  3. The auditor runs the command as written, and dart run can't find the script.
Expected Behavior

The validator runs from any install path.
Quoting fixes it:

dart run "${CLAUDE_PLUGIN_ROOT}/scripts/validate_layers.dart" --all
Additional Context
  • I haven't reproduced it. The model may quote the path on its own, but nothing tells it to.
  • https://code.claude.com/docs/en/plugins-reference: "In skill, command, and agent content, write the ${...} reference in the Markdown body instead, and Claude Code substitutes the path inline when it loads the content."
  • The plugin-paths CI job could also fail on an unquoted ${CLAUDE_PLUGIN_ROOT} in a command.
  • Same root cause as VeryGoodOpenSource/vgv-ai-flutter-plugin#194, there in a hook.
Ngôn ngữ chính
Dart
Star
7
Fork
2
Merge trung bình
9 giờ 59 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của VeryGoodOpenSource/vgv-ffca-plugin

Tất cả issue của VeryGoodOpenSource/vgv-ffca-plugin

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.