@golproductions/check 1.2.0 → 1.2.2

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/package.json +1 -1
  2. package/src/index.js +6 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golproductions/check",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Pre-execution firewall hook for AI agents. Validates every command before it reaches the shell. 152 failed commands without Check. 1 with it. Supports Claude Code, Gemini CLI, Antigravity, Cursor, and VS Code.",
5
5
  "bin": {
6
6
  "check": "src/index.js"
package/src/index.js CHANGED
@@ -24,9 +24,10 @@ function install() {
24
24
  file: "settings.json",
25
25
  config: (existing) => {
26
26
  existing.hooks = existing.hooks || {};
27
+ const cmd = process.platform === "win32" ? "npx.cmd" : "npx";
27
28
  existing.hooks.PreToolUse = [{
28
29
  matcher: "Bash|PowerShell",
29
- hooks: [{ type: "command", command: "npx", args: ["@golproductions/check"] }]
30
+ hooks: [{ type: "command", command: cmd, args: ["@golproductions/check"] }]
30
31
  }];
31
32
  existing.env = existing.env || {};
32
33
  existing.env.GOL_CLIENT_ID = key;
@@ -71,20 +72,18 @@ function install() {
71
72
  const updated = t.config(existing);
72
73
  mkdirSync(t.dir, { recursive: true });
73
74
  writeFileSync(filepath, JSON.stringify(updated, null, 2) + "\n", "utf8");
74
- console.log(`✓ ${t.name} — ${filepath}`);
75
+ console.log(` ${t.name} configured`);
75
76
  installed++;
76
77
  }
77
78
 
78
79
  if (installed === 0) {
79
- console.log("No IDE config directories found (~/.claude, ~/.gemini, ~/.cursor).");
80
- console.log("Start your IDE first, then run: npx @golproductions/check --install");
80
+ console.log("\nNo supported IDE found. Install Claude Code, Gemini CLI, or Cursor first.");
81
81
  process.exit(1);
82
82
  }
83
83
 
84
- console.log(`\n${installed} IDE(s) configured. Restart your IDE to activate Check.`);
84
+ console.log(`\nCheck installed. Restart your IDE to activate.\n`);
85
85
  if (key === "your_key") {
86
- console.log("Set your key: export GOL_CLIENT_ID=your_key");
87
- console.log("Get a free key at https://www.golproductions.com/check.html");
86
+ console.log("Get your free API key at https://www.golproductions.com/check.html\n");
88
87
  }
89
88
  process.exit(0);
90
89
  }