Version Packages#212
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@ait-co/console-cli@0.1.44
Patch Changes
a22bc92: Add transparent mid-flight 401 reauth for read commands (
withReauthRetry)When a live API call fails with a genuine expired-session 401 (not a geo-block),
read-only commands now automatically re-authenticate with saved file credentials
and replay the request once — without prompting the user or opening a browser.
What changed
TossApiErrorgainsisGeoBlocked(errorCode4010) andisExpiredSession(
isAuthError && !isGeoBlocked) getters, so geo-blocks are never mistakenfor expired sessions and never trigger a reauth attempt.
withReauthRetry<T>helper in_shared.tswraps a readoperation: catches only
isExpiredSessionerrors, loads file credentials,headlessly re-authenticates, and replays the call exactly once.
AITCC_SESSIONenv (CI mode) and env-sourcedcredentials (
AITCC_EMAIL/AITCC_PASSWORD) skip reauth and rethrow.whoami,app ls/show/status/bundles ls/bundles deployed,workspace ls/use/show/partner/terms show/segments ls,members ls,notices ls/show/categories,me terms show,keys ls,app init(workspace fetch).
members invite/remove, workspace/me terms agree) — replaying a mutation could
double-submit.