@newdefs/haltr 5.0.0 → 5.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 (3) hide show
  1. package/bin/hal +1 -1
  2. package/install.js +3 -4
  3. package/package.json +1 -1
package/bin/hal CHANGED
@@ -4,7 +4,7 @@ const { execFileSync } = require("child_process");
4
4
  const path = require("path");
5
5
 
6
6
  const isWindows = process.platform === "win32";
7
- const binName = isWindows ? "hal.exe" : "hal";
7
+ const binName = isWindows ? "hal-binary.exe" : "hal-binary";
8
8
  const binPath = path.join(__dirname, binName);
9
9
 
10
10
  try {
package/install.js CHANGED
@@ -3,7 +3,6 @@
3
3
  const https = require("https");
4
4
  const fs = require("fs");
5
5
  const path = require("path");
6
- const { execSync } = require("child_process");
7
6
 
8
7
  const VERSION = require("./package.json").version;
9
8
  const REPO = "shunyooo/haltr";
@@ -54,10 +53,10 @@ async function main() {
54
53
  const url = `https://github.com/${REPO}/releases/download/v${VERSION}/${artifact}`;
55
54
  const binDir = path.join(__dirname, "bin");
56
55
  const isWindows = process.platform === "win32";
57
- const binPath = path.join(binDir, isWindows ? "hal.exe" : "hal");
56
+ const binPath = path.join(binDir, isWindows ? "hal-binary.exe" : "hal-binary");
58
57
 
59
- // Skip if binary already exists
60
- if (fs.existsSync(binPath)) {
58
+ // Skip if binary already exists and is a real binary (not the wrapper)
59
+ if (fs.existsSync(binPath) && fs.statSync(binPath).size > 10000) {
61
60
  return;
62
61
  }
63
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newdefs/haltr",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Quality assurance tool for coding agent outputs",
5
5
  "bin": {
6
6
  "hal": "bin/hal"