neoagent 3.2.1-beta.3 → 3.2.1-beta.4

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": "neoagent",
3
- "version": "3.2.1-beta.3",
3
+ "version": "3.2.1-beta.4",
4
4
  "description": "Self-hosted AI agent for long-running tasks, automation, messaging, device control, and local memory",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "server/index.js",
@@ -1 +1 @@
1
- 602b98932a60cda4e154d8497aa43085
1
+ 8d462aa76c4f455b84daf0d4c44c1356
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"69c8c61792f04cc809dfef0c910414fb9afc06
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "593865678" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "2769323075" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });
@@ -143683,7 +143683,7 @@ if(r){r=s.d
143683
143683
  r===$&&A.b()
143684
143684
  p.push(A.jt(q,A.jw(!1,new A.Y(B.wO,A.cS(new A.cF(B.kE,new A.acT(r,q),q),q,q),q),!1,B.I,!0),q,q,0,0,0,q))}if(!s.ay){r=s.e
143685
143685
  r===$&&A.b()
143686
- r=B.b.t("mrxxlnfn-56756fd").length!==0&&r.b}else r=!1
143686
+ r=B.b.t("mrxyb18t-842d114").length!==0&&r.b}else r=!1
143687
143687
  if(r){r=s.d
143688
143688
  r===$&&A.b()
143689
143689
  r=r.aU&&!r.ag?84:0
@@ -149554,7 +149554,7 @@ $S:0}
149554
149554
  A.a3h.prototype={}
149555
149555
  A.WB.prototype={
149556
149556
  r6(a){var s=this
149557
- if(B.b.t("mrxxlnfn-56756fd").length===0||s.a!=null)return
149557
+ if(B.b.t("mrxyb18t-842d114").length===0||s.a!=null)return
149558
149558
  s.Cn()
149559
149559
  s.a=A.mJ(B.Y6,new A.bmF(s))},
149560
149560
  Cn(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f
@@ -149572,7 +149572,7 @@ if(!t.f.b(k)){s=1
149572
149572
  break}i=J.a3(k,"buildId")
149573
149573
  h=i==null?null:B.b.t(J.q(i))
149574
149574
  j=h==null?"":h
149575
- if(J.br(j)===0||J.e(j,"mrxxlnfn-56756fd")){s=1
149575
+ if(J.br(j)===0||J.e(j,"mrxyb18t-842d114")){s=1
149576
149576
  break}n.b=!0
149577
149577
  n.H()
149578
149578
  p=2
@@ -149589,7 +149589,7 @@ case 2:return A.i(o.at(-1),r)}})
149589
149589
  return A.k($async$Cn,r)},
149590
149590
  wV(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1
149591
149591
  var $async$wV=A.h(function(a2,a3){if(a2===1){o.push(a3)
149592
- s=p}for(;;)switch(s){case 0:if(B.b.t("mrxxlnfn-56756fd").length===0||n.c){s=1
149592
+ s=p}for(;;)switch(s){case 0:if(B.b.t("mrxyb18t-842d114").length===0||n.c){s=1
149593
149593
  break}n.c=!0
149594
149594
  n.H()
149595
149595
  p=4
@@ -54,6 +54,24 @@ class WhatsAppPlatform extends BasePlatform {
54
54
  return [...ownIds].some((id) => text.includes(`@${id}`));
55
55
  }
56
56
 
57
+ _checkMessageAccess(msg, { chatId, isGroup, sender, pushName }) {
58
+ const senderId = normalizeWhatsAppId(sender);
59
+ return this._checkInboundAccess({
60
+ platform: 'whatsapp',
61
+ senderId,
62
+ chatId,
63
+ isDirect: !isGroup,
64
+ isShared: isGroup,
65
+ groupId: isGroup ? chatId : '',
66
+ phoneNumber: senderId,
67
+ wasMentioned: isGroup && this._isGroupAddressedToBot(msg.message || {}),
68
+ }, {
69
+ senderName: pushName || senderId,
70
+ meta: isGroup ? `Group: ${chatId}` : '',
71
+ groupLabel: chatId,
72
+ });
73
+ }
74
+
57
75
  async connect() {
58
76
  this._manualDisconnect = false;
59
77
  if (this._reconnectTimer) {
@@ -180,22 +198,12 @@ class WhatsAppPlatform extends BasePlatform {
180
198
  }
181
199
 
182
200
  if (!content && !mediaType) continue;
183
- if (isGroup && !this._isGroupAddressedToBot(msg.message || {})) continue;
184
201
 
185
- const senderId = normalizeWhatsAppId(sender);
186
- const access = this._checkInboundAccess({
187
- platform: 'whatsapp',
188
- senderId,
202
+ const access = this._checkMessageAccess(msg, {
189
203
  chatId,
190
- isDirect: !isGroup,
191
- isShared: isGroup,
192
- groupId: isGroup ? chatId : '',
193
- phoneNumber: senderId,
194
- wasMentioned: isGroup,
195
- }, {
196
- senderName: pushName || senderId,
197
- meta: isGroup ? `Group: ${chatId}` : '',
198
- groupLabel: chatId,
204
+ isGroup,
205
+ sender,
206
+ pushName,
199
207
  });
200
208
 
201
209
  if (!access.allowed) continue;