v0.0.23 — Kimi CLI & OpenCode Support
Added
-
Kimi CLI agent support (
type: "kimi")- Parser for Kosong Messages format (
--print --output-format stream-json) - Wire Protocol fallback for future compatibility
- Models:
moonshot/kimi-k2.5,moonshot/kimi-k2-turbo-preview - MCP config at
~/.kimi/mcp.json
- Parser for Kosong Messages format (
-
OpenCode agent support (
type: "opencode")- Parser for JSONL stream format (
--format json) - Multi-provider model routing (
openai/,anthropic/,google/prefixes) - Models:
openai/gpt-5.2,anthropic/claude-sonnet-4-5,anthropic/claude-opus-4-6,google/gemini-3-pro-preview - MCP config at
./opencode.json(project-level)
- Parser for JSONL stream format (
-
checkpointDirsregistry field for agents with non-standard state directories- OpenCode uses XDG Base Directory spec:
~/.local/share/opencode/,~/.config/opencode/,~/.local/state/opencode/ buildTarCommand()includes all checkpoint dirs in tar archive
- OpenCode uses XDG Base Directory spec:
-
Python SDK type surface updated with
'kimi'and'opencode'inAgentTypeliteral
Fixed
- OpenCode multi-provider BYOK env resolution —
resolveAgentConfig()now checksproviderEnvMap(model-specific key) before genericapiKeyEnv, soanthropic/...models resolve toANTHROPIC_API_KEYinstead of incorrectly usingOPENAI_API_KEY - Kimi parser Kosong format — rewrote from Wire Protocol to actual Kosong Messages format (role-based
assistant/toolmessages with content arrays) - Kimi single-TextPart serialization — handle Kosong edge case where single TextPart is serialized as plain string instead of array