Skip to content

Commit c39487a

Browse files
myleshortonclaude
andcommitted
Fix npm postinstall: was broken for all users
Two bugs: 1. VERSION was hardcoded to 0.5.0 instead of 0.7.0 2. existsSync check found the 196-byte stub script and exited early, never downloading the real binary Every npm user was getting a broken stub that printed an error. Fixed by checking file size (real binary is >1MB, stub is <500B). Bumped npm to 0.7.1. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6b993b7 commit c39487a

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wick-mcp",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"mcpName": "io.github.wickproject/wick",
55
"description": "Browser-grade web access for AI agents. Gives MCP-compatible agents (Claude Code, Cursor, etc.) the same web access their human operators have.",
66
"keywords": ["mcp", "ai-agent", "web-fetch", "browser", "claude", "cursor"],

npm/scripts/install.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ const fs = require("fs");
33
const path = require("path");
44
const { execFileSync } = require("child_process");
55

6-
const VERSION = "0.5.0";
6+
const VERSION = "0.7.0";
77
const PLATFORM = `${process.platform}-${process.arch}`;
88

99
const ASSETS = {
1010
"darwin-arm64": {
1111
url: `https://github.com/wickproject/wick/releases/download/v${VERSION}/wick-${VERSION}-darwin-arm64.tar.gz`,
12-
sha256: "8f4585f478c4bb734098dddd4660cb60ccce47ac10f7f48e7b382a02110554cc",
13-
},
14-
"linux-x64": {
15-
url: `https://github.com/wickproject/wick/releases/download/v${VERSION}/wick-${VERSION}-linux-x86_64.tar.gz`,
16-
sha256: "d87cf78ef30b79e5455e0030fe8cbc4d696c570a569fe39b0b12774e6e0050c1",
12+
sha256: "766f48f0eb1cfb220352f9fb266fb97504fe456cea9670a1d1f3516b3ae8f725",
1713
},
1814
};
1915

@@ -31,7 +27,8 @@ const binDir = path.join(__dirname, "..", "bin");
3127
const binPath = path.join(binDir, "wick");
3228
const tarPath = path.join(binDir, "wick.tar.gz");
3329

34-
if (fs.existsSync(binPath)) {
30+
// Check if real binary exists (not the stub — stub is <500 bytes)
31+
if (fs.existsSync(binPath) && fs.statSync(binPath).size > 1000) {
3532
process.exit(0);
3633
}
3734

0 commit comments

Comments
 (0)