You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve symlink paths in CLI isMain guard for npx compatibility (#75)
The isMain entry-point guard compared import.meta.url (which resolves
symlinks) against pathToFileURL(process.argv[1]) (which preserves
symlinks). When running via npx or on macOS (/tmp → /private/tmp),
these never matched, so main() was silently never called.
Fix by comparing resolved filesystem paths using realpathSync, wrapped
in a try-catch for defensive safety. Also fix 3 pre-existing test
failures caused by the same macOS /var → /private/var divergence.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fix CLI silently doing nothing when run via `npx` due to symlink path mismatch in the `isMain` entry-point guard. Also fix 3 pre-existing test failures on macOS caused by `/var` → `/private/var` symlink divergence.
0 commit comments