Skip to content

feat: SDK update for version 25.1.0 - #350

Merged
ChiragAgg5k merged 7 commits into
masterfrom
dev
Aug 3, 2026
Merged

feat: SDK update for version 25.1.0#350
ChiragAgg5k merged 7 commits into
masterfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Aug 3, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 25.1.0.

What's Changed

  • Added: list-organizations and list-projects run at the root, alongside login
  • Added: Hint pointing at /v1 when an endpoint misses the API path
  • Fixed: list-organizations, list-projects, and organization get work on self-hosted installs
  • Fixed: login --endpoint verifies the endpoint before prompting for credentials
  • Fixed: Trailing slashes in an endpoint no longer produce double-slashed request paths
  • Fixed: HTML and oversized error pages are summarized instead of printed verbatim
  • Fixed: --report issue links stay within the length GitHub accepts

@ChiragAgg5k ChiragAgg5k changed the title feat: Command Line SDK update for version 25.1.0 feat: SDK update for version 25.1.0 Aug 3, 2026
@greptile-apps

greptile-apps Bot commented Aug 3, 2026

Copy link
Copy Markdown

Greptile Summary

The PR updates the CLI to SDK version 25.1.0 and improves endpoint validation, self-hosted console command support, and HTTP error presentation.

  • Adds root-level list-organizations and list-projects commands while retaining hidden legacy OAuth2 paths.
  • Adds self-hosted fallbacks for organization and project discovery.
  • Validates explicit login endpoints before prompting and normalizes trailing slashes.
  • Summarizes HTML and oversized error responses and bounds report fields.
  • Updates package and installer release versions.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
lib/console-fallback.ts Adds fallback implementations for listing organizations/projects and retrieving an organization on installations lacking Cloud-only routes.
lib/auth/session.ts Adds endpoint URL and health-route verification using the existing legacy console client.
lib/auth/login.ts Runs verification for explicitly supplied non-Cloud endpoints before collecting login credentials.
lib/client.ts Normalizes trailing slashes, tags errors with the request endpoint, and provides bounded descriptions for non-JSON HTTP failures.
lib/parser.ts Integrates generalized error hints and bounded error details into verbose and report output.
lib/commands/services/oauth2.ts Registers root-level listing commands and routes both new and legacy command paths through session-aware fallbacks.
cli.ts Registers the two new root-level commands in the Commander command tree.

Reviews (2): Last reviewed commit: "chore: merge master into dev for the 25...." | Re-trigger Greptile

Resolved the squash-merge divergence from #349. Every conflicted file is generator output, so all conflicts take the freshly generated 25.1.0 tree; the merged tree was verified byte-identical to the generator's output. Lock files are master's with only the package version bumped, keeping the release free of incidental dependency churn.
@ChiragAgg5k
ChiragAgg5k merged commit 5708849 into master Aug 3, 2026
2 checks passed
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