Skip to content

Conversation

@quicktime
Copy link

Summary

  • Adds minimum bun version check (1.1.14+) to smart-install.js
  • Auto-upgrades bun if below minimum version

Why This Is Needed

Bun 1.1.14+ is required because:

  • .changes property (bun 1.1.14) - SQLite statements return {changes, lastInsertRowid} from .run(). Older versions return undefined, causing runtime errors.
  • Multi-statement SQL support (bun 1.0.26) - db.run() with multiple SQL statements works correctly. Older versions silently execute only the first statement, causing database tables to not be created.

Test plan

  • Verified on bun 1.3.5 - all database tables created correctly
  • Verified worker starts and becomes ready
  • Tested auto-upgrade from bun 1.0.15 → 1.3.5 - works correctly

Fixes #519

🤖 Generated with Claude Code

Bun 1.1.14+ is required because:
- `.changes` property on SQLite statements (added in 1.1.14)
- Multi-statement SQL support in db.run() (fixed in 1.0.26)

Older versions cause silent failures in database migrations.

Fixes thedotmack#519

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin hooks fail to start on Claude Code session initialization

1 participant