Skip to content

Release v0.5.0 - OpenCode Integration & Type Safety

Latest

Choose a tag to compare

@moazbuilds moazbuilds released this 08 Nov 17:13

🎉 New Features

  • OpenCode CLI Integration: Added OpenCode as a first-class engine provider alongside Claude, Codex, Cursor, and CCR
    • Full registry-based provider pattern with JSON event streaming
    • Non-interactive execution via environment guardrails
    • XDG-compliant paths under OPENCODE_HOME (~/.codemachine/opencode)
    • Support for multiple authentication providers
    • Run with: codemachine opencode run or --engine opencode in workflows

🔧 Improvements

  • Type Safety: Replaced 'any' types with 'unknown' and proper type guards throughout telemetry system
  • Telemetry Refactoring: Implemented provider-specific telemetry parsers for better maintainability
  • CCR Auth Simplification: Streamlined authentication using simple .enable marker instead of .credentials.json
  • Engine Naming: Updated display names to be more descriptive (CCR → Claude Code Router, Claude → Claude Code)
  • ESLint Configuration: Updated to use tseslint.config for better type safety

🐛 Fixes

  • Process Cleanup: Improved child process termination with process group killing for Unix systems
  • Environment Variables: Fixed OpenCode runner to properly merge process.env with provided env
  • Race Conditions: Better handling of abort signals and process events

📚 Documentation

  • Comprehensive updates across README, CLI reference, and workflow guides
  • Added contributor credits for OpenCode integration