multica/server/internal/daemon
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
..
execenv feat(agent): add OpenClaw runtime support 2026-04-07 14:40:51 +08:00
repocache feat(daemon): add opencode as supported agent provider (#341) 2026-04-02 17:52:07 +08:00
usage fix(daemon): fix Codex token usage parsing from session logs 2026-03-28 00:03:47 +08:00
client.go feat(runtime): support CLI update from web runtime page (#331) 2026-04-02 14:12:49 +08:00
config.go feat(agent): add OpenClaw runtime support 2026-04-07 14:40:51 +08:00
daemon.go feat(daemon): support direct download update for non-Homebrew installs (#334) 2026-04-02 15:38:06 +08:00
daemon_test.go refactor: decouple task lifecycle from issue status (#151) 2026-03-27 18:30:21 +08:00
health.go feat(daemon): agent-driven repo checkout with bare clone cache 2026-03-29 19:37:48 +08:00
helpers.go fix(daemon): prevent stuck tasks from blocking queue and add concurrent execution 2026-03-30 03:08:52 +08:00
prompt.go refactor: decouple task lifecycle from issue status (#151) 2026-03-27 18:30:21 +08:00
types.go feat(agents): reply as thread instead of top-level comment (#205) 2026-03-31 13:48:39 +08:00