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

Aperta Adatta ai principianti
#43 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
85/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart
Ambito
tooling

Direzione di ricerca

Leggi agents/ffca-layer-auditor.md intorno alla riga 39 e skills/ffca-audit/SKILL.md intorno alle righe 27 e 30. Racchiudi tra virgolette il percorso dello script del plugin in ciascun comando documentato, in modo che funzionino i percorsi contenenti spazi. Esamina tutti e tre i comandi e conferma che le virgolette siano usate in modo coerente; l’issue dice che il job CI plugin-paths potrebbe anche rilevare i riferimenti senza virgolette.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Dart
Stelle
7
Fork
2
Merge medio
9h 59m
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VeryGoodOpenSource/vgv-ffca-plugin

Tutte le issue di VeryGoodOpenSource/vgv-ffca-plugin

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.