v0.5.1
Package ecosystem and process-adapter runtime: installable packages, manifest V2
[adapter] process adapters speaking the opi-extension-jsonl-v1 protocol, and
example adapter packages bridging tools/commands/hooks/events/state into the
extension API.
Added
opi-coding-agent:--fork <session-id>plus interactive/tree,/fork, and/clonesession commands that copy the active branch into a new parented session without rewriting the source JSONL file.opi-agent/opi-coding-agent: RPC/SDKextension_commandsupport for dispatching correlated custom commands to registered extension registries.opi-coding-agent: config-driven OpenAI-compatible provider profiles with model metadata, compatibility flags, runtime provider construction, and registry-backed--list-modelsoutput.opi-web-ui:ConversationStatenow tracks resource metadata fromsession_inforesponses and the last successful compaction response payload.opi-coding-agent: runtime session persistence now writes meaningfulparent_idlinks andleafpointers so continuing from a selected branch tip creates a same-file branch path.opi-coding-agent:opi package add/remove/list/doctornow validates package manifests, writes lock entries, and reports installed package diagnostics.opi-coding-agent: manifest V2 supports[adapter]process adapters with theopi-extension-jsonl-v1JSONL protocol.opi-coding-agent: installed package declarations are loaded during runtime startup so adapter tools, commands, hooks, events, state, and cancellation bridge into the extension API.opi-coding-agent: example adapter packages demonstrate todo state, permission-gate example hooks, and protected path hooks through a runnable process adapter.
Changed
opi-agent: moved the core loop implementation out oflib.rsinto an internalagent_loopmodule while preserving the publicopi_agent::agent_loopexport.
Fixed
opi-tui:SelectListandBranchPickernow account for selected-row markers and CJK display width when aligning labels with metadata.opi-coding-agent:opi package doctornow rejects invalid manifest V2 adapter declarations and reports lock/source/resource/adapter diagnostics.opi-coding-agent: Adapter state snapshots are persisted in session JSONL and restored on resume.opi-coding-agent: Adapter event drops are diagnostic-visible, shutdown allows a bounded graceful exit, local package identity is canonicalized, SSH git source parsing is URL-aware, and relative adapter commands cannot escape package roots.opi-coding-agent: Linux build and test correctness — removed a dead Unix-only import that failedclippy/test/docunder-D warnings, and test-binary locators no longer match cargo.ddep-info siblings (which lack the execute bit and causedEACCESwhen spawning adapters).
Install: cargo install opi-coding-agent