Skip to content

opencode-swarm-plugin@0.45.5

Choose a tag to compare

@github-actions github-actions released this 28 Dec 04:50
· 244 commits to main since this release
2b08088

Patch Changes

  • 42217cb Thanks @joelhooks! - ## 🐝 Logger Finally Works in Global Installs

      BEFORE: 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 that require() 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() with pino.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.