neoagent 2.3.1-beta.10 → 2.3.1-beta.12

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`);
@@ -793,7 +796,6 @@ async function cmdLogin(args = []) {
793
796
  }
794
797
  throw new Error('OpenAI authentication timed out after 15 minutes.');
795
798
  }
796
- }
797
799
  }
798
800
 
799
801
  function installDependencies() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.3.1-beta.10",
3
+ "version": "2.3.1-beta.12",
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: "2234309269" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "1141578903" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });