Skip to content

feat: Console SDK update for version 12.2.0#92

Merged
ArnabChatterjee20k merged 2 commits into
mainfrom
dev
May 8, 2026
Merged

feat: Console SDK update for version 12.2.0#92
ArnabChatterjee20k merged 2 commits into
mainfrom
dev

Conversation

@ArnabChatterjee20k
Copy link
Copy Markdown
Member

@ArnabChatterjee20k ArnabChatterjee20k commented May 8, 2026

This PR contains updates to the Console SDK for version 12.2.0.

@ArnabChatterjee20k ArnabChatterjee20k changed the title feat: Console SDK update for version 12.2.0 feat: SDK update for version 12.2.0 May 8, 2026
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 8, 2026

Greptile Summary

This PR updates the Console SDK to version 12.2.0, fixing two type correctness issues and a documentation variable shadowing bug that affected multiple example files.

  • Documentation examples (docs/examples/console/*.md): Renames the console variable to xconsole across all 14 affected files. Using const console = new Console(client) shadowed the global console object, silently breaking the console.log(result) call at the end of each example. The rename restores the expected behavior.
  • src/services/vcs.ts: Corrects the queries parameter type from string to string[] in both overloads and the implementation of listRepositoryBranches, aligning the type with its documented intent and updating the example in docs/examples/vcs/list-repository-branches.md accordingly.
  • src/client.ts: Removes a duplicate session?: string field (and its undefined default) that conflicted with the already-present non-optional session: string field.

Confidence Score: 5/5

Safe to merge — all changes are targeted bug fixes and type corrections with no functional regressions.

The changes fix real pre-existing defects (broken example code, wrong parameter types, a duplicate conflicting field) without introducing new logic or restructuring any critical paths.

No files require special attention.

Important Files Changed

Filename Overview
src/client.ts Removes duplicate optional session?: string field and its undefined default — the non-optional session: string with empty-string default already existed, making the optional variant a conflicting duplicate
src/services/vcs.ts Corrects queries parameter type from string to string[] in all overloads and the implementation of listRepositoryBranches, matching the semantic documented in the JSDoc
docs/examples/vcs/list-repository-branches.md Updates example value for queries from an empty string '' to an empty array [] to match the corrected type
docs/examples/console/list-o-auth-2-providers.md Renames console variable to xconsole to avoid shadowing the global console object, which would have broken the console.log(result) call at the end of all affected examples

Reviews (2): Last reviewed commit: "chore: update Console SDK to 12.2.0" | Re-trigger Greptile

Comment thread .github/workflows/publish.yml Outdated
@ArnabChatterjee20k ArnabChatterjee20k changed the title feat: SDK update for version 12.2.0 feat: Console SDK update for version 12.2.0 May 8, 2026
@ArnabChatterjee20k ArnabChatterjee20k merged commit ceba210 into main May 8, 2026
1 check 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