neoagent 2.3.1-beta.13 → 2.3.1-beta.14
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
|
@@ -752,13 +752,13 @@ async function cmdLogin(args = []) {
|
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
const data = await reqRes.json();
|
|
755
|
-
const {
|
|
755
|
+
const { device_auth_id, interval } = data;
|
|
756
756
|
const user_code = data.user_code || data.usercode;
|
|
757
757
|
const verification_uri = 'https://auth.openai.com/codex/device';
|
|
758
758
|
|
|
759
759
|
console.log(`\n ${COLORS.cyan}Please visit:${COLORS.reset} ${verification_uri}`);
|
|
760
760
|
console.log(` ${COLORS.cyan}And enter the code:${COLORS.reset} ${COLORS.bold}${user_code}${COLORS.reset}\n`);
|
|
761
|
-
|
|
761
|
+
|
|
762
762
|
logInfo('Waiting for authorization (timeout in 15m)...');
|
|
763
763
|
const startTime = Date.now();
|
|
764
764
|
const timeoutMs = 15 * 60 * 1000;
|
|
@@ -770,7 +770,7 @@ async function cmdLogin(args = []) {
|
|
|
770
770
|
method: 'POST',
|
|
771
771
|
headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' },
|
|
772
772
|
body: JSON.stringify({
|
|
773
|
-
device_auth_id:
|
|
773
|
+
device_auth_id: device_auth_id,
|
|
774
774
|
user_code: user_code
|
|
775
775
|
})
|
|
776
776
|
});
|
package/package.json
CHANGED
|
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"59aa584fdf100e6c78c785d8a5b565d1de4b48
|
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "1756420478" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|