mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 21:39:54 +02:00
Implement the OpenCode backend for the agent SDK, enabling Multica to run tasks via the OpenCode CLI (`opencode run --format json`). Parses the JSONL streaming protocol (text, tool_use, step_start, step_finish, error events) and maps them to the unified Message types. Changes: - New `opencodeBackend` in `pkg/agent/opencode.go` - Factory function updated to support "opencode" agent type - Daemon config probes for `opencode` CLI on PATH - Unit tests for all event handlers and JSON parsing