Skip to content

Fix: Import OAuth functions from @mariozechner/pi-ai/oauth#4

Open
nikhilmaddirala wants to merge 1 commit into
kim0:mainfrom
nikhilmaddirala:main
Open

Fix: Import OAuth functions from @mariozechner/pi-ai/oauth#4
nikhilmaddirala wants to merge 1 commit into
kim0:mainfrom
nikhilmaddirala:main

Conversation

@nikhilmaddirala

Copy link
Copy Markdown

Description

This PR fixes issue #3: "Error: Login failed: (0 , _piAi.loginOpenAICodex) is not a function"

Changes

  • Import loginOpenAICodex and refreshOpenAICodexToken from @mariozechner/pi-ai/oauth instead of @mariozechner/pi-ai
  • Update devDependencies to @mariozechner/pi-ai ^0.56.2 and @mariozechner/pi-coding-agent ^0.56.2 to ensure the /oauth export is available

Root Cause

The loginOpenAICodex and refreshOpenAICodexToken functions were moved to a sub-export (@mariozechner/pi-ai/oauth) in newer versions of pi-ai. They are no longer exported from the main @mariozechner/pi-ai package.

Testing

All 18 tests pass with these changes.

- Import loginOpenAICodex and refreshOpenAICodexToken from
  @mariozechner/pi-ai/oauth instead of @mariozechner/pi-ai
- Update devDependencies to @mariozechner/pi-ai ^0.56.2 and
  @mariozechner/pi-coding-agent ^0.56.2 to ensure /oauth export
  is available

This fixes issue kim0#3: "Error: Login failed: (0 , _piAi.loginOpenAICodex) is not a function"

The functions were moved to a sub-export in newer versions of pi-ai.
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