Skip to content

fix: read the CLI version past pub's output and quote validator paths - #55

Open
Statyk7 wants to merge 1 commit into
mainfrom
fix/vgv-cli-version-and-quoting
Open

Statyk7 wants to merge 1 commit into
mainfrom
fix/vgv-cli-version-and-quoting

Conversation

@Statyk7

@Statyk7 Statyk7 commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Description

Two small fixes found while comparing against the sister plugins.

Very Good CLI version check (from vgv-ai-flutter-plugin#176). check_vgv_cli.sh read only the first line of very_good --version. After a Dart SDK upgrade, the stale snapshot sends the shim through dart pub global run, which prints its recompile output first. The hook then read the version as unverifiable and stood aside, so Very Good CLI MCP tools stopped being auto-approved. It now matches an anchored ^x.y.z$ line anywhere in the output, so a version-shaped fragment of a path in pub's output can't win.

  • The test stub now prints the bare version, as the real CLI does.
  • Two new cases cover the stale-snapshot output: one allow, and one deny where the path holds a newer version-shaped fragment. Both fail on the old hook.
  • bash hooks/check_vgv_cli_test.sh: 17 passed. Also checked against a real very_good 1.6.0: allow.

Quoted plugin paths (from vgv-wingspan#299, vgv-ai-flutter-plugin#195). The dart run ${CLAUDE_PLUGIN_ROOT}/scripts/validate_layers.dart --all commands in agents/ffca-layer-auditor.md and skills/ffca-audit/SKILL.md are now quoted, so they work when the plugin lives under a path with spaces, such as the desktop app's ~/Library/Application Support/…. hooks/hooks.json was already quoted. The Plugin Paths check still passes.

Type of Change

  • New feature (feat)
  • Bug fix (fix)
  • Code refactor (refactor)
  • Documentation (docs)
  • CI change (ci)
  • Chore (chore)

🤖 Generated with Claude Code

https://claude.ai/code/session_017Vxxv9fVFGupLXEnmx5bSq

check_vgv_cli.sh read only the first line of `very_good --version`. A
stale snapshot prints pub's recompile output first, so a working CLI
read as unverifiable and its MCP tools stopped being auto-approved.
Match an anchored version line anywhere in the output instead, as
vgv-ai-flutter-plugin does.

Quote ${CLAUDE_PLUGIN_ROOT} in the validator commands of the auditor
and the audit skill, so they work when the plugin path has spaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Vxxv9fVFGupLXEnmx5bSq
@Statyk7
Statyk7 requested a review from a team as a code owner November 26, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants