Files
multica/server
Jiang Bohan 0ac1b7aa43 feat(agent): add OpenCode provider support
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
2026-04-03 13:55:18 +08:00
..