feat(playwright): add per-hook enabled settings per the hook-enablement convention

Đang mở
#19,299 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, shell
Lĩnh vực
devtools

Hướng nghiên cứu

Read docs/contracts/hook-enablement/README.md, docs/contracts/plugin-option-naming/README.md, and docs/conventions/playwright.yaml, then inspect plugins/playwright/plugin.json, plugins/playwright/hooks/hooks.json, and hooks/install-python-deps.sh. Extend hooks/install-python-deps.test.sh to cover the three specified layer-resolution cases. The work is done when the option, helper routing, docs, schema, tests, and count-script result meet the acceptance criteria; this issue is blocked by #19284.

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

Mô tả

Context

plugins/playwright/hooks/hooks.json ships one hook, a SessionStart entry that runs hooks/install-python-deps.sh through exec-bash.mjs. plugin.json declares demo_* and cli_update_hint options but no *_enabled option, so an operator cannot turn the hook off without disabling the plugin or every hook (docs/contracts/hook-enablement/README.md, "Three levels").

Proposed work

Declare the plugin's per-hook settings and route each hook through the shared helper.

Acceptance criteria

  • plugin.json userConfig declares one boolean install_python_deps_enabled for the SessionStart install hook, titled per docs/contracts/plugin-option-naming/README.md#titles.
  • The default follows the convention's "Default" bullet (a hook that starts work the operator did not ask for, such as an install or network call, defaults off); the PR states the chosen default and why.
  • hooks/install-python-deps.sh (or its launcher) resolves plugin default, user layer and repository layer (docs/conventions/playwright.yaml) through the shared helper before doing any work, and exits quietly when the result is off.
  • With the user layer false, the hook does nothing whatever docs/conventions/playwright.yaml says; with the user layer unset and false there, it does nothing; with the user layer unset and true there, it runs.
  • A test covers those three cases (extend hooks/install-python-deps.test.sh).
  • The key is documented in the plugin's config reference and repository-layer schema.
  • The count script lists no playwright entry.

Blocked by: #19284
Parent: #18921

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
2 giờ 1 phút
Pull request đã merge (30 ngày)
972

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 melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

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.