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

オープン
#212 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
shell
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Shell
スター
180
フォーク
25
平均マージ
1日 7時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

VeryGoodOpenSource/vgv-ai-flutter-plugin のほかの issue

VeryGoodOpenSource/vgv-ai-flutter-plugin の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。