Skip to content

feat: Command Line SDK update for version 22.1.3#328

Merged
ChiragAgg5k merged 3 commits into
masterfrom
dev
Jun 23, 2026
Merged

feat: Command Line SDK update for version 22.1.3#328
ChiragAgg5k merged 3 commits into
masterfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jun 23, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 22.1.3.

What's Changed

  • Added: --resource option to oauth2 authorize, create-device-authorization, and create-token for RFC 8707 resource indicators
  • Added: Press Enter during device login to open the verification URL in your browser
  • Updated: Bumped @appwrite.io/console dependency to ^15.1.0

@ChiragAgg5k ChiragAgg5k changed the title feat: Command Line SDK update for version 22.1.3 feat: SDK update for version 22.1.3 Jun 23, 2026
@greptile-apps

greptile-apps Bot commented Jun 23, 2026

Copy link
Copy Markdown

Greptile Summary

This PR bumps the CLI to version 22.1.3, adding RFC 8707 --resource indicators to three OAuth2 commands, updating @appwrite.io/console to 15.1.0 (which provides the backing SDK support), and adding a "Press Enter to open browser" shortcut during device login.

  • lib/utils.ts: New openBrowser helper with platform-specific dispatch; the Windows path has a URL-quoting issue where manual double-quotes in the spawn args may cause libuv to double-encode them, passing a URL with literal \" characters to the browser.
  • lib/auth/login.ts: New listenForBrowserOpen with proper TTY / setRawMode guards, Ctrl+C forwarding, and integration into the device-login polling loop.
  • lib/commands/services/oauth-2.ts: --resource option added to authorize, createDeviceAuthorization, and createToken and forwarded as the final positional arg to the SDK methods.

Confidence Score: 4/5

Safe to merge after fixing the Windows URL quoting in openBrowser; all other changes are version bumps or well-guarded feature additions.

The Windows openBrowser path manually embeds literal double-quote characters inside a spawn argument, which causes libuv to double-encode them — the browser receives "https://..." with quote characters in the URL, silently breaking the 'Press Enter to open' feature on Windows. Everything else (TTY guards, setRawMode check, resource-indicator forwarding, lock file and install-script version bumps) looks correct.

lib/utils.ts — the Windows start URL argument needs the manual double-quoting removed.

Important Files Changed

Filename Overview
lib/utils.ts Adds openBrowser helper; Windows path manually embeds double-quotes in the URL spawn arg, which may be double-encoded by libuv on Windows.
lib/auth/login.ts Adds listenForBrowserOpen with proper TTY/raw-mode guards and Ctrl+C handling; integrates cleanly into device login flow.
lib/commands/services/oauth-2.ts Adds --resource option to three OAuth2 commands and forwards it to the SDK; requires the bumped @appwrite.io/console@15.1.0 to accept the new parameter.
lib/constants.ts Version bump from 22.1.2 to 22.1.3.
package.json Version bump and @appwrite.io/console dep updated to ^15.1.0.
install.sh Version string updated to 22.1.3.
install.ps1 Download URLs updated to 22.1.3 binaries.
scoop/appwrite.config.json Scoop manifest version and download URLs updated to 22.1.3.

Reviews (3): Last reviewed commit: "chore: update Command Line SDK to 22.1.3" | Re-trigger Greptile

Comment thread lib/commands/services/oauth-2.ts
Comment thread lib/auth/login.ts Outdated
@ChiragAgg5k ChiragAgg5k changed the title feat: SDK update for version 22.1.3 feat: Command Line SDK update for version 22.1.3 Jun 23, 2026
@ChiragAgg5k ChiragAgg5k merged commit 2f0063b into master Jun 23, 2026
2 checks passed
@ChiragAgg5k ChiragAgg5k deleted the dev branch June 23, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants