@golproductions/check 3.1.0 → 3.1.1

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 +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golproductions/check",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "The universal anti-hallucination engine for AI coding agents. Catches what is not real before it reaches your project.",
5
5
  "bin": {
6
6
  "check": "src/index.js",
package/src/index.js CHANGED
@@ -5,7 +5,7 @@ import { homedir, platform, arch } from "node:os";
5
5
  import { pipeline } from "node:stream/promises";
6
6
  import { Readable } from "node:stream";
7
7
 
8
- const VERSION = "3.1.0";
8
+ const VERSION = "3.1.1";
9
9
  const BINARY_VERSION = "3.0.0";
10
10
  const API = "https://triage.golproductions.com/preflight";
11
11
  const CDN = "https://pub-e55366a7f5994be9be04f0e205179f4a.r2.dev/releases";
@@ -79,11 +79,11 @@ async function install() {
79
79
  const scriptSrc = readFileSync(new URL(import.meta.url), "utf8");
80
80
  const hooksDir = join(home, ".check");
81
81
  mkdirSync(hooksDir, { recursive: true });
82
- const scriptPath = join(hooksDir, "check.mjs");
82
+ const scriptPath = join(hooksDir, "check.mjs").replace(/\\/g, "/");
83
83
  writeFileSync(scriptPath, scriptSrc, "utf8");
84
84
 
85
85
  const ext = platform() === "win32" ? ".exe" : "";
86
- const binaryPath = join(hooksDir, "truth-gate" + ext);
86
+ const binaryPath = join(hooksDir, "truth-gate" + ext).replace(/\\/g, "/");
87
87
  await downloadBinary(binaryPath);
88
88
 
89
89
  const mcpEntry = { command: "npx", args: ["@golproductions/check", "--mcp"], env: { GOL_CLIENT_ID: key } };