neoagent 2.3.1-beta.11 → 2.3.1-beta.13

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/lib/manager.js CHANGED
@@ -751,7 +751,10 @@ async function cmdLogin(args = []) {
751
751
  throw new Error(`Failed to request device code: HTTP ${reqRes.status}`);
752
752
  }
753
753
 
754
- const { device_code, user_code, verification_uri, interval } = await reqRes.json();
754
+ const data = await reqRes.json();
755
+ const { device_code, interval } = data;
756
+ const user_code = data.user_code || data.usercode;
757
+ const verification_uri = 'https://auth.openai.com/codex/device';
755
758
 
756
759
  console.log(`\n ${COLORS.cyan}Please visit:${COLORS.reset} ${verification_uri}`);
757
760
  console.log(` ${COLORS.cyan}And enter the code:${COLORS.reset} ${COLORS.bold}${user_code}${COLORS.reset}\n`);
@@ -767,9 +770,8 @@ async function cmdLogin(args = []) {
767
770
  method: 'POST',
768
771
  headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' },
769
772
  body: JSON.stringify({
770
- client_id: clientId,
771
- device_code,
772
- grant_type: 'urn:ietf:params:oauth:grant-type:device_code'
773
+ device_auth_id: device_code,
774
+ user_code: user_code
773
775
  })
774
776
  });
775
777
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.3.1-beta.11",
3
+ "version": "2.3.1-beta.13",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "MIT",
6
6
  "main": "server/index.js",
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"59aa584fdf100e6c78c785d8a5b565d1de4b48
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "596979404" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "525293684" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });