Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(publish): also remove app/electron/ (contains app.asar binary) to prevent Z_DATA_ERROR
diegosouzapwe1da18174046
diff --git a/scripts/prepublish.mjs b/scripts/prepublish.mjsindex 920e0b7b15..31d9a02386 100644--- a/scripts/prepublish.mjs+++ b/scripts/prepublish.mjs@@ -278,14 +278,17 @@ if (existsSync(swcHelpersSrc) && !existsSync(swcHelpersDst)) {console.log(" ✅ @swc/helpers included in standalone build.");}-// ── Step 10.6: Remove vscode-extension from standalone build ──-// The vscode extension test runtime (vsda.node) is a platform-native binary-// that triggers Z_DATA_ERROR during npm pack. Remove it from the bundle.-const vscodeBuildDir = join(APP_DIR, "vscode-extension");-if (existsSync(vscodeBuildDir)) {- console.log(" 🧹 Removing app/vscode-extension/ (not needed in npm package)...");- rmSync(vscodeBuildDir, { recursive: true, force: true });- console.log(" ✅ app/vscode-extension/ removed.");+// ── Step 10.6: Remove large binaries from standalone build ──+// These directories contain platform-native binaries (.node, .asar) that+// trigger Z_DATA_ERROR during npm pack. They are not needed in the npm package.+const binaryDirsToRemove = ["vscode-extension", "electron"];+for (const dir of binaryDirsToRemove) {+ const targetDir = join(APP_DIR, dir);+ if (existsSync(targetDir)) {+ console.log(` 🧹 Removing app/${dir}/ (not needed in npm package)...`);+ rmSync(targetDir, { recursive: true, force: true });+ console.log(` ✅ app/${dir}/ removed.`);+ }}// ── Done ───────────────────────────────────────────────────