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

Ouverte
#19,299 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
github, shell
Domaine
devtools

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Shell
Étoiles
22
Forks
2
Merge moyen
2 h 1 min
PR mergées (30 j)
972

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de melodic-software/claude-code-plugins

Toutes les issues de melodic-software/claude-code-plugins

Issues similaires

Plus d'issues Shell/Bash

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.