Skip to content

Version Packages#212

Merged
DaveDev42 merged 1 commit into
mainfrom
changeset-release/main
Jun 26, 2026
Merged

Version Packages#212
DaveDev42 merged 1 commit into
mainfrom
changeset-release/main

Conversation

@ait-community-bot

Copy link
Copy Markdown
Contributor

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

    • TossApiError gains isGeoBlocked (errorCode 4010) and isExpiredSession
      (isAuthError && !isGeoBlocked) getters, so geo-blocks are never mistaken
      for expired sessions and never trigger a reauth attempt.
    • New exported withReauthRetry<T> helper in _shared.ts wraps a read
      operation: catches only isExpiredSession errors, loads file credentials,
      headlessly re-authenticates, and replays the call exactly once.
    • Carve-outs preserved: AITCC_SESSION env (CI mode) and env-sourced
      credentials (AITCC_EMAIL/AITCC_PASSWORD) skip reauth and rethrow.
    • Read commands wired: 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).
    • Mutations are intentionally NOT wrapped (deploy, register, keys create/revoke,
      members invite/remove, workspace/me terms agree) — replaying a mutation could
      double-submit.

@DaveDev42
DaveDev42 merged commit c95a21f into main Jun 26, 2026
1 check passed
@DaveDev42
DaveDev42 deleted the changeset-release/main branch June 26, 2026 15:57
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.

1 participant