@golproductions/check 3.0.1 → 3.0.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 +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golproductions/check",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "The anti-hallucination layer for AI agents. Supports Claude Code, Antigravity, and Cursor.",
5
5
  "bin": {
6
6
  "check": "src/index.js",
package/src/index.js CHANGED
@@ -5,7 +5,8 @@ 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.0.1";
8
+ const VERSION = "3.0.2";
9
+ const BINARY_VERSION = "3.0.0";
9
10
  const API = "https://triage.golproductions.com/preflight";
10
11
  const CDN = "https://pub-e55366a7f5994be9be04f0e205179f4a.r2.dev/releases";
11
12
  const CLIENT_ID = process.env.GOL_CLIENT_ID || "";
@@ -14,7 +15,7 @@ async function downloadBinary(dest) {
14
15
  const os = platform() === "win32" ? "win" : platform() === "darwin" ? "macos" : "linux";
15
16
  const cpu = arch() === "arm64" ? "arm64" : "x64";
16
17
  const ext = os === "win" ? ".exe" : "";
17
- const url = `${CDN}/truth-gate-v${VERSION}-${os}-${cpu}${ext}`;
18
+ const url = `${CDN}/truth-gate-v${BINARY_VERSION}-${os}-${cpu}${ext}`;
18
19
  const res = await fetch(url);
19
20
  if (!res.ok) throw new Error(`Download failed: ${res.status}`);
20
21
  await pipeline(Readable.fromWeb(res.body), createWriteStream(dest));