@rubytech/create-maxy 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Install Maxy — your personal AI assistant",
5
5
  "bin": {
6
6
  "create-maxy": "./dist/index.js"
@@ -56,7 +56,10 @@ export async function POST() {
56
56
  const match = output.match(/(https:\/\/claude\.ai\/oauth\/authorize[^\s]+)/)
57
57
  if (match) {
58
58
  resolved = true
59
- resolve(NextResponse.json({ authUrl: match[1] }))
59
+ // Remove code=true& from the URL — that triggers the fallback flow
60
+ // which shows an auth code. Without it, the flow completes automatically.
61
+ const autoUrl = match[1].replace(/code=true&?/, '').replace(/\?&/, '?')
62
+ resolve(NextResponse.json({ authUrl: autoUrl }))
60
63
  }
61
64
  }
62
65