Conversation
Regenerated index.js and index.d.ts with latest napi build output. Adds moveToTrash/moveToTrashAsync exports and updates formatting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add native module build step to release and beta-release workflows so that bun build --compile includes the .node files in the binary. This enables clonefile syscall for directory CoW cloning instead of falling back to cp -cR on macOS/Linux. - macOS: cross-compile for both x86_64 and aarch64 - Linux: build for current architecture only - Windows: skip (vibe-native is macOS/Linux only) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Run prettier --write on index.d.ts and index.js to match project code style. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
NAPI-RS auto-generation widened the return type to string. Restore the specific union type for type safety. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add CI verification step to confirm native module embedding in release binaries, clarify macOS cross-compilation comments in workflows, and update documentation to reflect native clonefile() syscall usage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…binary fix: embed vibe-native in compiled release binaries
NAPI-RS generated index.js uses existsSync() to check for .node files, which can fail inside Bun's virtual filesystem ($bunfs) in compiled binaries. Add loadNativeForPlatform() as a fallback that uses string literal require() paths, ensuring Bun's bundler statically discovers and embeds the .node files during `bun build --compile`. Also add VIBE_DEBUG diagnostic log for copy strategy selection. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Enhance the beta release workflow to run the compiled binary on native targets (non-cross-compilation) with VIBE_DEBUG=1, verifying that the native module actually loads at runtime rather than relying solely on string search. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fix: add direct .node require fallback for Bun compiled binaries
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore: release v0.22.2
PR Review: v0.22.2 - Native Module Embedding FixSummaryThis PR merges develop into main for v0.22.2, fixing critical issues with native module embedding in compiled Bun binaries. The changes ensure that the Code Quality ✅Strengths
Code Quality Observations
Potential Issues
|
Summary
Release v0.22.2 - merge develop into main.
Changes since last release (v0.22.1)
.noderequire fallback for Bun compiled binaries (fix: add direct .node require fallback for Bun compiled binaries #356)Test plan
🤖 Generated with Claude Code