Skip to content

Commit 22a6089

Browse files
chore(release): version packages (#2719)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5a180d5 commit 22a6089

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.changeset/cli-device-oauth.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- 5a180d5: Add OAuth 2.0 device authorization flow (RFC 8628) for `ctx7 login` and `ctx7 setup`. Required for headless / remote hosts (SSH, Codespaces, Docker, CI) where the existing localhost-callback flow can't work — the browser was opening on the user's laptop while the callback listener ran on the remote host.
8+
9+
The new flow prints a verification URL and short code, then polls a token endpoint. The user visits the URL on any device, signs in, and approves; the CLI receives the same `ctx7sk-…` API key it would have gotten from the legacy flow. Device flow is selected automatically when `SSH_CONNECTION` is set or `$DISPLAY` is missing on Linux, and can be forced with `ctx7 login --device`. Polling tolerates transient network errors and 5xx responses without ending the session.
10+
311
## 0.4.5
412

513
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ctx7",
3-
"version": "0.4.5",
3+
"version": "0.5.0",
44
"description": "Context7 CLI - Fetch documentation context and configure Context7",
55
"type": "module",
66
"bin": {

0 commit comments

Comments
 (0)