Skip to main content

Module project

Module project 

Source
Expand description

Project a provider-agnostic ConversationView into a Copilot CLI Session (an events.jsonl line stream + workspace metadata).

This is the reverse of crate::provider::to_view and the basis for path p export copilot and path resume. ✅ Verified against the real CLI (loads + resumes in copilot 1.0.67/1.0.68, including a 5817-event sub-agent session; colorized edit diffs render). The loader’s writer contract and the TUI’s rendering contract are documented in docs/agents/formats/copilot-cli/writing-compatible.md and docs/agents/formats/copilot-cli/file-fidelity.md — keep this module in sync with those when either changes.

Structs§

CopilotProjector
Projects a ConversationView into a Copilot Session.

Constants§

DEFAULT_COPILOT_VERSION
The default copilotVersion stamped on projected session.start events.