multica/server/pkg/agent
Jiang Bohan 5cf4ba803d feat(agent): add OpenClaw runtime support
Add OpenClaw as a fourth supported agent runtime alongside Claude Code,
Codex, and OpenCode. OpenClaw CLI (`openclaw agent -p ... --output-format
stream-json`) is integrated via the same Backend interface pattern.

Changes:
- Add openclawBackend in server/pkg/agent/openclaw.go with NDJSON
  event stream parsing (text, thinking, tool_call, error, step, result)
- Register "openclaw" in the agent factory (agent.go)
- Add MULTICA_OPENCLAW_PATH / MULTICA_OPENCLAW_MODEL env var detection
  in daemon config
- Include "openclaw" in AGENTS.md config injection alongside codex/opencode
- Add comprehensive unit tests for all event handlers and processEvents
2026-04-07 14:40:51 +08:00
..
agent.go feat(agent): add OpenClaw runtime support 2026-04-07 14:40:51 +08:00
agent_test.go fix(agent): fix data races, add tests, and fix raw protocol detection 2026-03-24 14:21:10 +08:00
claude.go feat(agent): improve live output UI and add execution history 2026-03-30 23:10:54 +08:00
claude_test.go feat(security): add agent output redaction and private agent assignment enforcement 2026-03-30 22:22:04 +08:00
codex.go feat(logging): add structured logging across server and SDK 2026-03-26 10:57:11 +08:00
codex_test.go feat(logging): add structured logging across server and SDK 2026-03-26 10:57:11 +08:00
openclaw.go feat(agent): add OpenClaw runtime support 2026-04-07 14:40:51 +08:00
openclaw_test.go feat(agent): add OpenClaw runtime support 2026-04-07 14:40:51 +08:00
opencode.go feat(daemon): add opencode as supported agent provider (#341) 2026-04-02 17:52:07 +08:00
opencode_test.go feat(daemon): add opencode as supported agent provider (#341) 2026-04-02 17:52:07 +08:00