Skip to content

v1.2.0

Choose a tag to compare

@cv cv released this 04 Jan 06:47
· 74 commits to main since this release

What's New

🚀 Major Changes

  • Switch to pi SDK - Now uses the pi-coding-agent SDK directly instead of shelling out to the CLI. This provides better error handling and cleaner integration.
  • Composite action - The action now installs its own dependencies at runtime, so you no longer need to add a separate npm install -g @mariozechner/pi-coding-agent step.

🧪 Testing

  • 88% test coverage - Comprehensive test suite with 62 tests covering all business logic
  • All core modules have 100% coverage: agent, context, github, run, security

🏗️ Architecture

  • Refactored codebase into testable modules
  • Extracted orchestration logic into run.ts for easier testing
  • Uses TypeScript compiler (tsc) instead of esbuild bundler

📝 Documentation

  • Updated README with simplified workflow (no manual pi install needed)
  • Added architecture section describing codebase structure

Upgrade Notes

The action is backwards compatible. Update your workflow to remove the manual pi installation:

# Before (v1.1.0)
- name: Install pi
  run: npm install -g @mariozechner/pi-coding-agent

- name: Run pi-action
  uses: cv/pi-action@v1

# After (v1.2.0) - just remove the install step!
- name: Run pi-action
  uses: cv/pi-action@v1

Full Changelog

  • Switch to tsc + pi SDK instead of esbuild bundling
  • Fix ESM compatibility for pi-coding-agent
  • Refactor: extract testable logic into modules
  • Add comprehensive tests (62 tests, 88% coverage)
  • Update README with simplified setup