fix: check-vgv-cli auto-approves Very Good CLI tool calls in a form the directory refuses

Aperta
#212 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
devtools

Direzione di ricerca

Read hooks/hooks.json, check-vgv-cli.sh, and the rationale in issue #109 to compare the two proposed behaviors. Choose whether to retain auto-approval or deny only, then update the hook tests and the descriptions in plugin/README.md and AGENTS.md. Done when Validate accepts the hook, tests cover the selected behavior, and CI/CD checks pass.

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

Descrizione

bug p1

Description

Validate refuses the version with "Hook can approve tool calls or change their input" on the PreToolUse hook in hooks/hooks.json. check-vgv-cli.sh returns a PreToolUse allow decision for Very Good CLI tools. We added it in #109 so the MCP tool never dead-ends when it is not on permissions.allow.

The portal accepts an approving hook only if it prints its JSON answer whole with one command, has no backslash escapes or printf % conversions, keeps allow out of any other quoted value, and sends everything else to stderr without 2>&1.

Two options:

  • Rewrite the hook so it meets those rules, and keep the auto-approve.
  • Drop the allow and only deny. Users then approve Very Good CLI tools once, like any other MCP tool.

Requirements

  • Decide between the two options above
  • Validate no longer reports "Hook can approve tool calls or change their input"
  • check-vgv-cli tests cover the new behavior
  • plugin/README.md and AGENTS.md describe the hook as it now behaves
  • All CI/CD checks are passing

Additional Context

  • #109 explains why the hook approves today.
Lingua principale
Shell
Stelle
180
Fork
25
Merge medio
1g 7h
PR unite (30g)
17

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-ai-flutter-plugin

Tutte le issue di VeryGoodOpenSource/vgv-ai-flutter-plugin

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.