From d99b8fbeb258c53cd486116c3996818512598c51 Mon Sep 17 00:00:00 2001 From: Master0fFate Date: Sun, 11 Oct 2026 02:10:47 +0200 Subject: [PATCH] Resolve symlinks before the installer entrypoint check Comparing the raw argv path against import.meta.url fails when the script runs through a symlink, which is how npx and node_modules/.bin invoke it on macOS and Linux. The installer exited silently there. Bump to 1.0.1. --- CHANGELOG.md | 5 +++++ package-lock.json | 4 ++-- package.json | 2 +- scripts/install.mjs | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 483440c..ab6a44c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to the Parallax Engine will be documented in this file. ## [Unreleased] +## [1.0.1] - 2026-10-11 + +### Fixed +- `npx parallax-opencode` did nothing on macOS and Linux: the installer compared its own path without resolving symlinks, so runs through `node_modules/.bin` or a symlinked temp directory skipped the entrypoint. + ## [1.0.0] - 2026-10-10 Rewrite for OpenCode 1.18.35. Smaller, faster, and enforced by the runtime instead of by prompt ceremony. diff --git a/package-lock.json b/package-lock.json index acc8c3e..17bf39a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "parallax-opencode", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "parallax-opencode", - "version": "1.0.0", + "version": "1.0.1", "license": "MIT", "dependencies": { "@opencode-ai/plugin": "^1.18.35" diff --git a/package.json b/package.json index 2d167fd..0f3d776 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parallax-opencode", - "version": "1.0.0", + "version": "1.0.1", "description": "Verified change loop for OpenCode: preflight gate, bounded project checks with durable receipts, and Horizon, a resumable supervisor for long-running goals", "type": "module", "main": "./dist/plugin.js", diff --git a/scripts/install.mjs b/scripts/install.mjs index 16a9ec9..6b0d4cb 100644 --- a/scripts/install.mjs +++ b/scripts/install.mjs @@ -1,6 +1,6 @@ #!/usr/bin/env node import { createHash, randomBytes } from "node:crypto" -import { existsSync, lstatSync, mkdirSync, readFileSync, renameSync, rmdirSync, rmSync, writeFileSync } from "node:fs" +import { existsSync, lstatSync, mkdirSync, readFileSync, realpathSync, renameSync, rmdirSync, rmSync, writeFileSync } from "node:fs" import { spawnSync } from "node:child_process" import { homedir, platform } from "node:os" import { basename, dirname, join, resolve } from "node:path" @@ -280,4 +280,4 @@ export async function run(argv = process.argv.slice(2)) { } } -if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) process.exitCode = await run() +if (process.argv[1] && realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url))) process.exitCode = await run()