Skip to content

v0.7.1

Choose a tag to compare

@FGuerreir0 FGuerreir0 released this 14 Nov 18:31
· 5 commits to main since this release

Windows fix. Claude Code runs commands through its PowerShell tool on Windows, and the install hook only watched Bash, so most commands an agent ran there were never checked.

  • The plugin's PreToolUse hook now matches Bash|PowerShell and vets PowerShell commands the same way.
  • PowerShell commands are read with PowerShell quoting (literal backslashes, backtick escape), so & C:\tools\npx.cmd -y some-pkg is caught. The same applies inside pwsh -Command '…'.
  • API: extractCommandTargets takes an optional dialect: 'posix' | 'powershell'.

Upgrading: plugin users, update the plugin in /plugin and start a new session. If you wired the hook into .claude/settings.json by hand, change its matcher to "Bash|PowerShell".

Full notes: https://fguerreir0.github.io/ghostimport/releases/#v0.7.1