hedgequantx 2.6.124 → 2.6.125

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": "hedgequantx",
3
- "version": "2.6.124",
3
+ "version": "2.6.125",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -529,8 +529,10 @@ const submitCallback = async (callbackUrl, provider = 'anthropic') => {
529
529
  const config = providerConfig[provider] || providerConfig.anthropic;
530
530
 
531
531
  // Submit to the provider's OAuth callback port directly
532
+ // Pass ALL query parameters from the callback URL, not just code and state
533
+ // Some providers (like Gemini) require additional params like scope, authuser, etc.
532
534
  return new Promise((resolve, reject) => {
533
- const callbackPath = `${config.path}?code=${encodeURIComponent(code)}&state=${encodeURIComponent(state)}`;
535
+ const callbackPath = `${config.path}?${url.searchParams.toString()}`;
534
536
 
535
537
  const req = http.request({
536
538
  hostname: '127.0.0.1',