neoagent 2.3.1-beta.52 → 2.3.1-beta.53

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.
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <resources>
3
+ <!-- Hosts allowed to connect to the Android Auto app. Update as needed. -->
4
+ <string-array name="hosts_allowlist">
5
+ <item>androidx.car.app</item>
6
+ <item>com.google.android.projection.gearhead</item>
7
+ </string-array>
8
+ </resources>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.3.1-beta.52",
3
+ "version": "2.3.1-beta.53",
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":"42d3d75a56efe1a2e9902f52dc8006099c45d9
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "2273256777" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "2193380936" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });
@@ -330,7 +330,12 @@ router.get('/api/auth/providers/complete', async (req, res) => {
330
330
  if (!user) {
331
331
  return res.status(404).json({ error: 'User not found' });
332
332
  }
333
- if (getTwoFactorStatus(user.id).enabled) {
333
+ // Skip secondary two-factor when signing in via certain social providers.
334
+ // Currently skip for Google (`provider === 'google`).
335
+ const providerKey = String(completion.provider || '').trim();
336
+ const twoFactor = getTwoFactorStatus(user.id);
337
+ const skipTwoFactorForProviders = new Set(['google']);
338
+ if (twoFactor.enabled && !skipTwoFactorForProviders.has(providerKey)) {
334
339
  return establishPendingTwoFactorSession(req, res, user);
335
340
  }
336
341
  updateLastLogin(user.id);