@golproductions/check 3.1.9 → 3.2.0

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 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golproductions/check",
3
- "version": "3.1.9",
3
+ "version": "3.2.0",
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.9";
8
+ const VERSION = "3.2.0";
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";
@@ -764,7 +764,11 @@ async function main() {
764
764
 
765
765
  if (d.verdict === "runnable") { out(f, true); }
766
766
  else { out(f, false, d.reason || "denied — address the issue before continuing"); }
767
- } catch { out(f, false, "check: verification failed, command blocked"); }
767
+ } catch {
768
+ // Network failure or timeout: fail OPEN. An unreachable validation
769
+ // service must never block the user's work (Terms, section 5).
770
+ outCreditsExhausted(f, "check: validation service unreachable, command ran unverified. Check resumes automatically.");
771
+ }
768
772
  }
769
773
 
770
774
  main();