guardvibe 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/cli.js +2 -2
  2. package/package.json +1 -1
package/build/cli.js CHANGED
@@ -84,7 +84,7 @@ function setupClaudeHooksAndGuide() {
84
84
  existingSettings.hooks = {};
85
85
  }
86
86
  // Real security hook: scan edited files automatically after every Edit/Write
87
- // This makes GuardVibe an active guardian, not a passive tool
87
+ // Claude Code passes tool_input as JSON on stdin extract file_path with jq
88
88
  if (!existingSettings.hooks.PostToolUse) {
89
89
  existingSettings.hooks.PostToolUse = [
90
90
  {
@@ -92,7 +92,7 @@ function setupClaudeHooksAndGuide() {
92
92
  hooks: [
93
93
  {
94
94
  type: "command",
95
- command: "npx -y guardvibe check $CLAUDE_FILE_PATH --format markdown 2>/dev/null || true"
95
+ command: "jq -r '.tool_input.file_path' | xargs npx -y guardvibe check --format markdown 2>/dev/null || true"
96
96
  }
97
97
  ]
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guardvibe",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Security MCP for vibe coding. 277 rules, 24 tools for Next.js, Supabase, Clerk, Stripe, Prisma, tRPC, Hono, GraphQL, Convex, Turso, Uploadthing, AI SDK, and the full AI-generated stack.",
5
5
  "type": "module",
6
6
  "bin": {