opencode-swarm-plugin@0.45.5
·
244 commits
to main
since this release
Patch Changes
-
42217cbThanks @joelhooks! - ## π Logger Finally Works in Global InstallsBEFORE: pino.transport() AFTER: pino.destination() ββββββββββββββ ββββββββββββββ β worker β β main β β thread β ββCRASHβββΊ β thread β ββWORKSβββΊ β require() β module not β sync write β ββββββββββββββ found ββββββββββββββFixed
unable to determine transport target for "pino-pretty"in global installs.Root cause:
pino.transport()spawns worker_threads thatrequire()modules. In global installs (bun install -g), the worker can't find modules because they're hoisted to a different location than the package.Fix: Replaced
pino.transport()withpino.destination():- Default: stdout JSON (works everywhere)
SWARM_LOG_FILE=1: writes to~/.config/swarm-tools/logs/swarm.log- Removed pino-roll/pino-pretty from runtime (they were causing worker thread issues)
Simple, reliable logging that works in bundled CLIs, global installs, and local dev.