Skip to content

fix(cli): handle unsupported CLI versions - #49

Closed
nkavian wants to merge 1 commit into
mainfrom
feat/cli-version-unsupported
Closed

fix(cli): handle unsupported CLI versions#49
nkavian wants to merge 1 commit into
mainfrom
feat/cli-version-unsupported

Conversation

@nkavian

@nkavian nkavian commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • send default CLI headers on unauthenticated form requests so every InFlow API call can participate in server-side version checks
  • parse server problem envelopes into stable InflowApiError codes/messages
  • surface VERSION_UNSUPPORTED as an actionable upgrade error with the install instructions link

Verification

  • pnpm format:check
  • pnpm typecheck
  • pnpm lint
  • pnpm test (rerun with loopback permission after sandbox EPERM on 127.0.0.1)
  • pnpm typedoc
  • pnpm build (rerun with permission to publish generated static skill assets into inflow-server)
  • pnpm --filter @inflowpayai/inflow exec pnpm publish --dry-run --no-git-checks
  • git diff --check

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.35714% with 11 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/core/src/resources/auth.ts 11.11% 8 Missing ⚠️
packages/core/src/resources/api-error.ts 91.89% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@nkavian nkavian closed this Jul 20, 2026
@nkavian
nkavian deleted the feat/cli-version-unsupported branch July 20, 2026 09:32
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