neoagent 2.3.1-beta.81 → 2.3.1-beta.83

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": "2.3.1-beta.81",
3
+ "version": "2.3.1-beta.83",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "MIT",
6
6
  "main": "server/index.js",
@@ -1 +1 @@
1
- 5e110f3526ff39d2ef377bb48abeb573
1
+ 256e0b71c54179d08f505686858a237f
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "3390654009" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "2085185919" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });
@@ -127331,7 +127331,7 @@ r===$&&A.b()
127331
127331
  o.push(A.id(p,A.iS(!1,new A.a3(B.tF,A.e_(new A.cU(B.h8,new A.a5o(r,p),p),p,p),p),!1,B.I,!0),p,p,0,0,0,p))}r=!1
127332
127332
  if(!s.ay)if(!s.ch){r=s.e
127333
127333
  r===$&&A.b()
127334
- r=B.b.A("mp2hsvp6-1bb6dfe").length!==0&&r.b}if(r){r=s.d
127334
+ r=B.b.A("mp2io2gk-515f8fb").length!==0&&r.b}if(r){r=s.d
127335
127335
  r===$&&A.b()
127336
127336
  r=r.V&&!r.a0?84:0
127337
127337
  q=s.e
@@ -131991,7 +131991,7 @@ $S:324}
131991
131991
  A.Y_.prototype={}
131992
131992
  A.R_.prototype={
131993
131993
  mJ(a){var s=this
131994
- if(B.b.A("mp2hsvp6-1bb6dfe").length===0||s.a!=null)return
131994
+ if(B.b.A("mp2io2gk-515f8fb").length===0||s.a!=null)return
131995
131995
  s.zY()
131996
131996
  s.a=A.pN(B.Pq,new A.b3i(s))},
131997
131997
  zY(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f
@@ -132009,7 +132009,7 @@ if(!t.f.b(k)){s=1
132009
132009
  break}i=J.Z(k,"buildId")
132010
132010
  h=i==null?null:B.b.A(J.r(i))
132011
132011
  j=h==null?"":h
132012
- if(J.bi(j)===0||J.c(j,"mp2hsvp6-1bb6dfe")){s=1
132012
+ if(J.bi(j)===0||J.c(j,"mp2io2gk-515f8fb")){s=1
132013
132013
  break}n.b=!0
132014
132014
  n.J()
132015
132015
  p=2
@@ -132026,7 +132026,7 @@ case 2:return A.i(o.at(-1),r)}})
132026
132026
  return A.k($async$zY,r)},
132027
132027
  v0(){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
132028
132028
  var $async$v0=A.h(function(a2,a3){if(a2===1){o.push(a3)
132029
- s=p}for(;;)switch(s){case 0:if(B.b.A("mp2hsvp6-1bb6dfe").length===0||n.c){s=1
132029
+ s=p}for(;;)switch(s){case 0:if(B.b.A("mp2io2gk-515f8fb").length===0||n.c){s=1
132030
132030
  break}n.c=!0
132031
132031
  n.J()
132032
132032
  p=4
@@ -31,6 +31,10 @@ function createCloudInitScript({
31
31
  'export DEBIAN_FRONTEND=noninteractive',
32
32
  `HOST_SHARE_MOUNT=${JSON.stringify(hostShareMount)}`,
33
33
  `HOST_DATA_MOUNT=${JSON.stringify(hostDataMount)}`,
34
+ 'HOST_SHARE_TAG=neoagent-host',
35
+ 'HOST_SHARE_TAG_FALLBACK=neoagent-host-pci',
36
+ 'HOST_DATA_TAG=neoagent-data',
37
+ 'HOST_DATA_TAG_FALLBACK=neoagent-data-pci',
34
38
  `APP_DIR=${JSON.stringify(appDir)}`,
35
39
  `BOOTSTRAP_MARKER=${JSON.stringify(bootstrapMarker)}`,
36
40
  `ENV_FILE=${JSON.stringify(envFile)}`,
@@ -41,16 +45,32 @@ function createCloudInitScript({
41
45
  'modprobe 9p 2>/dev/null || true',
42
46
  'modprobe 9pnet_virtio 2>/dev/null || true',
43
47
  '',
44
- 'if ! grep -qs "neoagent-host" /etc/fstab; then',
45
- ' echo "neoagent-host ${HOST_SHARE_MOUNT} 9p trans=virtio,version=9p2000.L,msize=262144,ro 0 0" >> /etc/fstab',
48
+ 'function mount_9p_tag() {',
49
+ ' local tag="$1"',
50
+ ' local target="$2"',
51
+ ' local mode="$3"',
52
+ ' mount -t 9p -o "trans=virtio,version=9p2000.L,msize=262144,${mode}" "$tag" "$target" >/dev/null 2>&1',
53
+ '}',
54
+ '',
55
+ 'if ! mount_9p_tag "$HOST_SHARE_TAG" "$HOST_SHARE_MOUNT" ro; then',
56
+ ' if mount_9p_tag "$HOST_SHARE_TAG_FALLBACK" "$HOST_SHARE_MOUNT" ro; then',
57
+ ' HOST_SHARE_TAG="$HOST_SHARE_TAG_FALLBACK"',
58
+ ' fi',
59
+ 'fi',
60
+ 'if ! mount_9p_tag "$HOST_DATA_TAG" "$HOST_DATA_MOUNT" rw; then',
61
+ ' if mount_9p_tag "$HOST_DATA_TAG_FALLBACK" "$HOST_DATA_MOUNT" rw; then',
62
+ ' HOST_DATA_TAG="$HOST_DATA_TAG_FALLBACK"',
63
+ ' fi',
46
64
  'fi',
47
- 'if ! grep -qs "neoagent-data" /etc/fstab; then',
48
- ' echo "neoagent-data ${HOST_DATA_MOUNT} 9p trans=virtio,version=9p2000.L,msize=262144,rw 0 0" >> /etc/fstab',
65
+ '',
66
+ 'if ! grep -qs "${HOST_SHARE_MOUNT}" /etc/fstab; then',
67
+ ' echo "${HOST_SHARE_TAG} ${HOST_SHARE_MOUNT} 9p trans=virtio,version=9p2000.L,msize=262144,ro 0 0" >> /etc/fstab',
68
+ 'fi',
69
+ 'if ! grep -qs "${HOST_DATA_MOUNT}" /etc/fstab; then',
70
+ ' echo "${HOST_DATA_TAG} ${HOST_DATA_MOUNT} 9p trans=virtio,version=9p2000.L,msize=262144,rw 0 0" >> /etc/fstab',
49
71
  'fi',
50
72
  '',
51
73
  'mount -a >/dev/null 2>&1 || true',
52
- 'mount "$HOST_SHARE_MOUNT" >/dev/null 2>&1 || true',
53
- 'mount "$HOST_DATA_MOUNT" >/dev/null 2>&1 || true',
54
74
  '',
55
75
  '# Redirect logs to both host-writable share and console',
56
76
  'LOG_FILE="${HOST_DATA_MOUNT}/bootstrap.log"',
@@ -409,10 +429,14 @@ function ensureGuestBootstrapSeed({
409
429
  ? [
410
430
  '@echo -off',
411
431
  'map -r',
412
- 'fs0:',
432
+ 'for %d in fs0 fs1 fs2 fs3 fs4 fs5',
433
+ ' if exist %d:\\EFI\\ubuntu\\shimaa64.efi then',
434
+ ' %d:\\EFI\\ubuntu\\shimaa64.efi',
435
+ ' endif',
436
+ 'endfor',
437
+ '# Fallback',
413
438
  '\\EFI\\ubuntu\\shimaa64.efi',
414
439
  '\\EFI\\ubuntu\\grubaa64.efi',
415
- '\\EFI\\BOOT\\BOOTAA64.EFI',
416
440
  ].join('\r\n')
417
441
  : [
418
442
  '@echo -off',
@@ -274,7 +274,7 @@ function buildQemuArgs({
274
274
  const args = ['-display', 'none', '-m', String(memoryMb), '-smp', String(cpus)];
275
275
 
276
276
  if (arch === 'arm64') {
277
- args.push('-machine', `virt,accel=${accel}`);
277
+ args.push('-machine', `virt,accel=${accel},gic-version=max`);
278
278
  if (platform !== 'win32') {
279
279
  args.push('-cpu', 'host');
280
280
  }
@@ -294,21 +294,33 @@ function buildQemuArgs({
294
294
  );
295
295
 
296
296
  if (hostShareRoot) {
297
- const id = 'fsdev-host';
298
- const deviceType = arch === 'arm64' ? 'virtio-9p-device' : 'virtio-9p-pci';
299
- args.push(
300
- '-fsdev', `local,path=${hostShareRoot},id=${id},security_model=none,readonly=on`,
301
- '-device', `${deviceType},fsdev=${id},mount_tag=neoagent-host`,
302
- );
297
+ const devices = arch === 'arm64'
298
+ ? [
299
+ { id: 'fsdev-host-mmio', type: 'virtio-9p-device', tag: 'neoagent-host' },
300
+ { id: 'fsdev-host-pci', type: 'virtio-9p-pci', tag: 'neoagent-host-pci' },
301
+ ]
302
+ : [{ id: 'fsdev-host', type: 'virtio-9p-pci', tag: 'neoagent-host' }];
303
+ for (const device of devices) {
304
+ args.push(
305
+ '-fsdev', `local,path=${hostShareRoot},id=${device.id},security_model=none,readonly=on`,
306
+ '-device', `${device.type},fsdev=${device.id},mount_tag=${device.tag}`,
307
+ );
308
+ }
303
309
  }
304
310
 
305
311
  if (hostDataRoot) {
306
- const id = 'fsdev-data';
307
- const deviceType = arch === 'arm64' ? 'virtio-9p-device' : 'virtio-9p-pci';
308
- args.push(
309
- '-fsdev', `local,path=${hostDataRoot},id=${id},security_model=none`,
310
- '-device', `${deviceType},fsdev=${id},mount_tag=neoagent-data`,
311
- );
312
+ const devices = arch === 'arm64'
313
+ ? [
314
+ { id: 'fsdev-data-mmio', type: 'virtio-9p-device', tag: 'neoagent-data' },
315
+ { id: 'fsdev-data-pci', type: 'virtio-9p-pci', tag: 'neoagent-data-pci' },
316
+ ]
317
+ : [{ id: 'fsdev-data', type: 'virtio-9p-pci', tag: 'neoagent-data' }];
318
+ for (const device of devices) {
319
+ args.push(
320
+ '-fsdev', `local,path=${hostDataRoot},id=${device.id},security_model=none`,
321
+ '-device', `${device.type},fsdev=${device.id},mount_tag=${device.tag}`,
322
+ );
323
+ }
312
324
  }
313
325
 
314
326
  if (seedPath) {