Documentation
¶
Overview ¶
Package copilot turns a GitHub Copilot subscription into a memcode backend: it finds the GitHub token the machine already has (an env var or `gh auth token`), exchanges it for a short-lived Copilot API token, and returns the endpoint + identity headers the Copilot API requires. No vendor SDK — raw HTTP and one subprocess — so it composes into provider selection without a dependency cycle (it returns a plain Backend; the provider package adapts it to an Endpoint).
This is consent-gated upstream: it activates only when the user explicitly selects the copilot source (the first-run wizard, or MEMCODE_CREDENTIAL_SOURCE =copilot). It never reads `gh` behind the user's back.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.