@gpustack/loopwright 0.0.2 → 0.0.3

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.
@@ -439,14 +439,25 @@ function buildHostToolBashSpawnSpec(options) {
439
439
  }
440
440
  if (process.platform === 'linux') {
441
441
  if (canUseLinuxBwrap()) {
442
+ const stripTrailingSlashes = (rawPath) => rawPath.replace(/\/+$/, '');
443
+ const isUnderDevShm = (rawPath) => {
444
+ const normalized = stripTrailingSlashes(rawPath);
445
+ return normalized === '/dev/shm' || normalized.startsWith('/dev/shm/');
446
+ };
447
+ const hasWritableShmRoot = [options.scratchDir, options.tmpDir].some(rawPath => stripTrailingSlashes(rawPath) === '/dev/shm');
448
+ const isolateDevShm = [options.candidateDir, options.scratchDir, options.tmpDir].some(isUnderDevShm)
449
+ && !hasWritableShmRoot;
442
450
  return {
443
451
  executable: '/usr/bin/bwrap',
444
452
  args: [
445
453
  '--ro-bind', '/', '/',
446
- '--bind', options.scratchDir, options.scratchDir,
447
- '--bind', options.tmpDir, options.tmpDir,
448
454
  '--dev', '/dev',
449
455
  '--proc', '/proc',
456
+ ...(isolateDevShm ? ['--tmpfs', '/dev/shm'] : []),
457
+ '--ro-bind', options.candidateDir, options.candidateDir,
458
+ '--bind', options.scratchDir, options.scratchDir,
459
+ '--bind', options.tmpDir, options.tmpDir,
460
+ ...(isolateDevShm ? ['--remount-ro', '/dev/shm'] : []),
450
461
  '--unshare-pid',
451
462
  '--unshare-net',
452
463
  '--die-with-parent',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/agent-pi",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/controller",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/decisions",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/github-app",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -869,7 +869,9 @@ function sleepAbortable(ms, signal) {
869
869
  signal.removeEventListener('abort', onAbort);
870
870
  resolveSleep();
871
871
  }, ms);
872
- timer.unref();
872
+ // Keep the timer ref'd: the outbound-only worker holds no listening sockets, so unref'ing
873
+ // the retry/idle timer would let Node's event loop drain prematurely instead of retrying.
874
+ // Shutdown/preemption still exits immediately because onAbort clears the timer.
873
875
  signal.addEventListener('abort', onAbort, { once: true });
874
876
  });
875
877
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/hardware-runner",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/memory",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/state",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1394,11 +1394,42 @@ export function compileLinuxBwrapCommand(policy, host, options) {
1394
1394
  if (options?.provisionExactFiles ?? env.probeExecutables) {
1395
1395
  provisionSandboxExactWritablePaths(normalized, { createTargetFile: true });
1396
1396
  }
1397
+ const targetCwd = options?.cwd === undefined
1398
+ ? normalized.canonicalWorkspaceRoot
1399
+ : canonicalizeAbsolutePath(options.cwd, 'cwd');
1400
+ const usesDevShm = [
1401
+ normalized.canonicalWorkspaceRoot,
1402
+ ...(normalized.canonicalScratchDirectory !== null ? [normalized.canonicalScratchDirectory] : []),
1403
+ targetCwd,
1404
+ ...normalized.canonicalWritablePaths,
1405
+ ...normalized.canonicalProtectedPaths,
1406
+ ...normalized.canonicalAllowedReadOnlyPaths,
1407
+ ...normalized.canonicalDeniedReadPaths,
1408
+ ...normalized.canonicalReadOnlyBindMounts.flatMap(m => [m.sourcePath, m.targetPath]),
1409
+ ].some(p => isSameOrSubpath(p, '/dev/shm'));
1410
+ const isolateDevShm = usesDevShm && !normalized.canonicalWritablePaths.includes('/dev/shm');
1411
+ const shmRoRoots = [];
1412
+ if (isolateDevShm) {
1413
+ if (isSameOrSubpath(normalized.canonicalWorkspaceRoot, '/dev/shm') && normalized.canonicalWorkspaceRoot !== '/dev/shm') {
1414
+ shmRoRoots.push(normalized.canonicalWorkspaceRoot);
1415
+ }
1416
+ if (isSameOrSubpath(targetCwd, '/dev/shm')
1417
+ && targetCwd !== '/dev/shm'
1418
+ && !shmRoRoots.some(r => isSameOrSubpath(targetCwd, r))
1419
+ && !normalized.canonicalWritablePaths.some(w => isSameOrSubpath(targetCwd, w))) {
1420
+ shmRoRoots.push(targetCwd);
1421
+ }
1422
+ }
1397
1423
  const args = ['--unshare-all'];
1398
1424
  if (normalized.networkMode === 'allow-outbound') {
1399
1425
  args.push('--share-net');
1400
1426
  }
1401
1427
  args.push('--die-with-parent', '--new-session', '--ro-bind', '/', '/', '--proc', '/proc', '--dev', '/dev');
1428
+ if (isolateDevShm) {
1429
+ // Isolate /dev/shm with an empty per-sandbox tmpfs instead of exposing host /dev/shm,
1430
+ // bind only the required workspace/policy subpaths, and remount /dev/shm read-only below.
1431
+ args.push('--tmpfs', '/dev/shm');
1432
+ }
1402
1433
  if (normalized.networkMode === 'none' && (!env.probeExecutables || existsSync('/etc/hosts'))) {
1403
1434
  args.push('--ro-bind-try', '/dev/null', '/etc/hosts');
1404
1435
  }
@@ -1425,6 +1456,7 @@ export function compileLinuxBwrapCommand(policy, host, options) {
1425
1456
  }
1426
1457
  };
1427
1458
  const allLaterMountTargets = [
1459
+ ...shmRoRoots,
1428
1460
  ...normalized.canonicalWritablePaths,
1429
1461
  ...normalized.canonicalProtectedPaths,
1430
1462
  ...normalized.canonicalAllowedReadOnlyPaths,
@@ -1439,6 +1471,11 @@ export function compileLinuxBwrapCommand(policy, host, options) {
1439
1471
  }
1440
1472
  appendDeniedMask(deniedPath);
1441
1473
  }
1474
+ for (const shmRoot of shmRoRoots) {
1475
+ if (!env.probeExecutables || existsSync(shmRoot)) {
1476
+ args.push('--ro-bind', shmRoot, shmRoot);
1477
+ }
1478
+ }
1442
1479
  for (const writablePath of normalized.canonicalWritablePaths) {
1443
1480
  args.push('--bind', writablePath, writablePath);
1444
1481
  }
@@ -1454,9 +1491,9 @@ export function compileLinuxBwrapCommand(policy, host, options) {
1454
1491
  for (const deniedPath of postMountDeniedPaths) {
1455
1492
  appendDeniedMask(deniedPath);
1456
1493
  }
1457
- const targetCwd = options?.cwd === undefined
1458
- ? normalized.canonicalWorkspaceRoot
1459
- : canonicalizeAbsolutePath(options.cwd, 'cwd');
1494
+ if (isolateDevShm) {
1495
+ args.push('--remount-ro', '/dev/shm');
1496
+ }
1460
1497
  if (options?.inheritSpawnEnv === true) {
1461
1498
  args.push('--chdir', targetCwd);
1462
1499
  const pinnedEnv = {
@@ -2886,22 +2886,41 @@ export function buildCommandScriptInvocation(scriptFullPath, options) {
2886
2886
  ...(seccompBpf !== undefined ? { seccompBpf } : {}),
2887
2887
  };
2888
2888
  }
2889
+ const usesDevShm = [
2890
+ ...canonicalDenied,
2891
+ ...canonicalAllowedRo,
2892
+ ...canonicalWritables,
2893
+ ...(canonicalCwd !== undefined ? [canonicalCwd] : []),
2894
+ ...(gitBind !== null ? [gitBind.sourceObjectsDir, gitBind.targetObjectsDir] : []),
2895
+ ...canonicalHostMounts.flatMap(m => [m.source, m.target, ...(m.aliasTarget !== undefined ? [m.aliasTarget] : [])]),
2896
+ ].some(p => isSameOrStrictChildPath(p, '/dev/shm'));
2897
+ const hasWritableShmRoot = canonicalWritables.includes('/dev/shm')
2898
+ || canonicalHostMounts.some(m => m.mode === 'rw' && (m.target === '/dev/shm' || m.aliasTarget === '/dev/shm'));
2899
+ const isolateDevShm = usesDevShm && !hasWritableShmRoot;
2889
2900
  const bwrapArgs = [
2890
2901
  ...bwrapNamespaceFlags,
2891
2902
  '--die-with-parent',
2892
2903
  '--ro-bind', '/', '/',
2893
2904
  '--dev', '/dev',
2894
2905
  '--proc', '/proc',
2906
+ ...(isolateDevShm ? ['--tmpfs', '/dev/shm'] : []),
2895
2907
  ];
2896
- const preMountDenied = canonicalDenied.filter(dp => !reopenedAll.some(rp => isStrictChildPath(dp, rp)));
2897
- const postMountDeniedSet = new Set(canonicalDenied.filter(dp => reopenedAll.some(rp => isStrictChildPath(dp, rp))));
2908
+ const shmCwdRo = isolateDevShm
2909
+ && canonicalCwd !== undefined
2910
+ && isStrictChildPath(canonicalCwd, '/dev/shm')
2911
+ && !reopenedAll.some(rp => isSameOrStrictChildPath(canonicalCwd, rp))
2912
+ ? canonicalCwd
2913
+ : null;
2914
+ const effectiveReopenedAll = shmCwdRo !== null ? [...reopenedAll, shmCwdRo] : reopenedAll;
2915
+ const preMountDenied = canonicalDenied.filter(dp => !effectiveReopenedAll.some(rp => isStrictChildPath(dp, rp)));
2916
+ const postMountDeniedSet = new Set(canonicalDenied.filter(dp => effectiveReopenedAll.some(rp => isStrictChildPath(dp, rp))));
2898
2917
  for (const hd of homeDeniedSet) {
2899
- if (reopenedAll.some(rp => isStrictChildPath(hd, rp))) {
2918
+ if (effectiveReopenedAll.some(rp => isStrictChildPath(hd, rp))) {
2900
2919
  postMountDeniedSet.add(hd);
2901
2920
  }
2902
2921
  }
2903
2922
  const maskedDirs = [];
2904
- const ancestorTmpfsDirs = [];
2923
+ const ancestorTmpfsDirs = isolateDevShm ? ['/dev/shm'] : [];
2905
2924
  for (const deniedPath of preMountDenied) {
2906
2925
  if (maskedDirs.some(m => isStrictChildPath(deniedPath, m))) {
2907
2926
  continue;
@@ -2915,7 +2934,7 @@ export function buildCommandScriptInvocation(scriptFullPath, options) {
2915
2934
  }
2916
2935
  else {
2917
2936
  maskedDirs.push(deniedPath);
2918
- const hasReopenedChild = reopenedAll.some(rp => isStrictChildPath(rp, deniedPath));
2937
+ const hasReopenedChild = effectiveReopenedAll.some(rp => isStrictChildPath(rp, deniedPath));
2919
2938
  if (hasReopenedChild) {
2920
2939
  bwrapArgs.push('--tmpfs', deniedPath);
2921
2940
  ancestorTmpfsDirs.push(deniedPath);
@@ -2925,6 +2944,9 @@ export function buildCommandScriptInvocation(scriptFullPath, options) {
2925
2944
  }
2926
2945
  }
2927
2946
  }
2947
+ if (shmCwdRo !== null && (!probeHost || existsSync(shmCwdRo))) {
2948
+ bwrapArgs.push('--ro-bind', shmCwdRo, shmCwdRo);
2949
+ }
2928
2950
  const writableSet = new Set(canonicalWritables);
2929
2951
  for (const roPath of canonicalAllowedRo) {
2930
2952
  if (writableSet.has(roPath))
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/taskpack",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loopwright/taskpack-runner",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -456,33 +456,33 @@
456
456
  }
457
457
  },
458
458
  "node_modules/@earendil-works/pi-agent-core": {
459
- "version": "1.5.2",
460
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.5.2.tgz",
461
- "integrity": "sha512-ie5mejS7mGfXt//9As7i3LfxVXdktZvF1JP4EQsUXTp4mU437h23MNGx7wXZ5VYs3YiG/Qnj3e7OZ2HC069OMw==",
459
+ "version": "1.6.0",
460
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.6.0.tgz",
461
+ "integrity": "sha512-IU/x+2XtE4KIdIkEndZssdLPbIUR38Btj+Q7vjIIXIK7GSamLtDH5jOw/dzBWAvWFAgZ2dslF5sPc6GcGOnS+w==",
462
462
  "license": "MIT",
463
463
  "dependencies": {
464
- "@earendil-works/pi-ai": "1.5.2",
465
- "@earendil-works/pi-schema": "1.5.2"
464
+ "@earendil-works/pi-ai": "1.6.0",
465
+ "@earendil-works/pi-schema": "1.6.0"
466
466
  },
467
467
  "engines": {
468
468
  "node": ">=22.19.0"
469
469
  }
470
470
  },
471
471
  "node_modules/@earendil-works/pi-ai": {
472
- "version": "1.5.2",
473
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.5.2.tgz",
474
- "integrity": "sha512-2tWPSnV3qzfiDIY3aWluBag3vC++Vs+VsXt/UquSU5onPMohPih72FUhIhaqmDdMYubOgB3Byl9uF4Vk40JLvQ==",
472
+ "version": "1.6.0",
473
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.6.0.tgz",
474
+ "integrity": "sha512-9hL+eygFDEiFp//cydeUfmFsKmEqpmvsNPb10Y1W8+m5K9O+sx1hMStfu6nukrBD5sl6mP4RykCYBBNEgsVLfw==",
475
475
  "license": "MIT",
476
476
  "dependencies": {
477
477
  "@anthropic-ai/sdk": "0.129.0",
478
478
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
479
- "@earendil-works/pi-schema": "1.5.2",
480
- "@earendil-works/pi-telemetry": "1.5.2",
481
- "@google/genai": "2.21.0",
479
+ "@earendil-works/pi-schema": "1.6.0",
480
+ "@earendil-works/pi-telemetry": "1.6.0",
481
+ "@google/genai": "2.32.0",
482
482
  "@smithy/node-http-handler": "4.12.1",
483
483
  "http-proxy-agent": "9.1.0",
484
484
  "https-proxy-agent": "9.1.0",
485
- "openai": "7.19.0",
485
+ "openai": "7.59.0",
486
486
  "partial-json": "0.1.7"
487
487
  },
488
488
  "bin": {
@@ -493,9 +493,9 @@
493
493
  }
494
494
  },
495
495
  "node_modules/@earendil-works/pi-codemode": {
496
- "version": "1.5.2",
497
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.5.2.tgz",
498
- "integrity": "sha512-HoZQ40a9RgdZ1VgmrX6x8887cNXedaRJT1l+Ie5YRIMK4gY7v0EpsiNqf6dmixrKylZlTgUSyR+vE8xhjfkr+w==",
496
+ "version": "1.6.0",
497
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.6.0.tgz",
498
+ "integrity": "sha512-GAgAy7iJCVbeiuqq2dTIuNj3aXTMUeTF8Nu8LZs72e8ueGGDU5L3/D8VxzTHALIpQ1/q8u1tfmB3iYS2Nopchw==",
499
499
  "license": "MIT",
500
500
  "dependencies": {
501
501
  "quickjs-wasi": "3.6.2"
@@ -505,16 +505,16 @@
505
505
  }
506
506
  },
507
507
  "node_modules/@earendil-works/pi-coding-agent": {
508
- "version": "1.5.2",
509
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.5.2.tgz",
510
- "integrity": "sha512-mUWI04rqF1Vd/m1q+Ps1XeWsTXEVvRUnsmRa83I3Dzua0Tx5bYS93imeqtIfrXf7PkkaR6ERz+AuQhIJlom5yA==",
508
+ "version": "1.6.0",
509
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.6.0.tgz",
510
+ "integrity": "sha512-zX1BVEsshx7A2MRuQ6jfr3RJGWw4Wn+vLq5ZfmlvS1RskhRmByaSZVXH/zcwRrWHO7qPgs98pNCbPOEti/t0fQ==",
511
511
  "license": "MIT",
512
512
  "dependencies": {
513
- "@earendil-works/pi-agent-core": "1.5.2",
514
- "@earendil-works/pi-ai": "1.5.2",
515
- "@earendil-works/pi-codemode": "1.5.2",
516
- "@earendil-works/pi-mcp": "1.5.2",
517
- "@earendil-works/pi-tui": "1.5.2",
513
+ "@earendil-works/pi-agent-core": "1.6.0",
514
+ "@earendil-works/pi-ai": "1.6.0",
515
+ "@earendil-works/pi-codemode": "1.6.0",
516
+ "@earendil-works/pi-mcp": "1.6.0",
517
+ "@earendil-works/pi-tui": "1.6.0",
518
518
  "@silvia-odwyer/photon-node": "0.3.4",
519
519
  "brace-expansion": "5.0.12",
520
520
  "chalk": "6.0.0",
@@ -530,7 +530,7 @@
530
530
  "quickjs-wasi": "3.6.2",
531
531
  "semver": "7.8.5",
532
532
  "typebox": "1.3.27",
533
- "undici": "8.12.3",
533
+ "undici": "8.12.4",
534
534
  "yaml": "2.9.0"
535
535
  },
536
536
  "bin": {
@@ -562,9 +562,9 @@
562
562
  }
563
563
  },
564
564
  "node_modules/@earendil-works/pi-mcp": {
565
- "version": "1.5.2",
566
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.5.2.tgz",
567
- "integrity": "sha512-zU1UgeXDlbixPqGEWD7Ql0brEMIpYr7aEWjoEE5h5enJbM/kQ2jIr7lN8JoR80oUnq1fJSU7SC8kLx2Fx/IZYg==",
565
+ "version": "1.6.0",
566
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.6.0.tgz",
567
+ "integrity": "sha512-dhqAR6MP8Fp3b8LEcBFOyxMZpGSozUAdzF0Dbl7OvojsjZrQsDV3ZKn85WRbwjHb4WjQUCVBsIZXwoyQxXeunw==",
568
568
  "license": "MIT",
569
569
  "dependencies": {
570
570
  "cross-spawn": "7.0.6"
@@ -574,27 +574,27 @@
574
574
  }
575
575
  },
576
576
  "node_modules/@earendil-works/pi-schema": {
577
- "version": "1.5.2",
578
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.5.2.tgz",
579
- "integrity": "sha512-hJoyCXWUhsSrXY5wJo2Q4kHXUsR51pNhkJHAMkWRwVMLDRtMDPkKNaa+JlVRVqTw1hjdSxcVVaFLSDbKlaTXEQ==",
577
+ "version": "1.6.0",
578
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.6.0.tgz",
579
+ "integrity": "sha512-jD0VRCUcFzWQ5zN82pOuoHNN42/3pu4E5krtpiKknvPq4g2m+fuO38lj+xnZhuVpYcd2G0qlmr8lE6ZMzkad7Q==",
580
580
  "license": "MIT",
581
581
  "engines": {
582
582
  "node": ">=22.19.0"
583
583
  }
584
584
  },
585
585
  "node_modules/@earendil-works/pi-telemetry": {
586
- "version": "1.5.2",
587
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.5.2.tgz",
588
- "integrity": "sha512-m+cumjIqNh1aMISi/9ttcG3ZOwIdriPbz/eMyWmRMJCGa/WcgY1RX4lrb7HvsHhSfI/JUeBESA4nOCr8C3y5ow==",
586
+ "version": "1.6.0",
587
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.6.0.tgz",
588
+ "integrity": "sha512-MNL0TvtpgoSfX7mBLSVgzxTW6yvT8VLEpHvbWnZsIp92FtqVvx+4q9DxWZdX8KvcQqBs0GseAgVnLdVFinjN9Q==",
589
589
  "license": "MIT",
590
590
  "engines": {
591
591
  "node": ">=22.19.0"
592
592
  }
593
593
  },
594
594
  "node_modules/@earendil-works/pi-tui": {
595
- "version": "1.5.2",
596
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.5.2.tgz",
597
- "integrity": "sha512-WK8ih+c88GWizaB79y7Pq3PV7ySf5VI1pZ1i/6aBBjDOAiG2EE3ojKjl+pxQqLfyQGnzHYu4VfakOBJgumuoyw==",
595
+ "version": "1.6.0",
596
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.6.0.tgz",
597
+ "integrity": "sha512-nVtWZ4rYr3KHDla3skGAWG5XoITEUJCoEx1AsWv1yKxV7+v86ulD2hxVn/P+COI6jsoeQmj3orqHbCHZwAUsUg==",
598
598
  "license": "MIT",
599
599
  "dependencies": {
600
600
  "get-east-asian-width": "1.6.0",
@@ -734,9 +734,9 @@
734
734
  }
735
735
  },
736
736
  "node_modules/@google/genai": {
737
- "version": "2.21.0",
738
- "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.21.0.tgz",
739
- "integrity": "sha512-+PDtco2/Z0ONdzCGekCoCT+O1VJS9xJQNN4XzQpXG/t3El/SWWMkCWlFRO1KmivOHPa4Q0VjUYu1HBKCZ/v33Q==",
737
+ "version": "2.32.0",
738
+ "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.32.0.tgz",
739
+ "integrity": "sha512-60c79uXpR0a47bmGqDxbXEBuQUalNmwo5mx5kqb91jIW4FoqpsLSt86DeVhRhtH5+s/16Wqxt3sXzFQn2U1OHQ==",
740
740
  "hasInstallScript": true,
741
741
  "license": "Apache-2.0",
742
742
  "dependencies": {
@@ -2262,9 +2262,9 @@
2262
2262
  }
2263
2263
  },
2264
2264
  "node_modules/openai": {
2265
- "version": "7.19.0",
2266
- "resolved": "https://registry.npmjs.org/openai/-/openai-7.19.0.tgz",
2267
- "integrity": "sha512-MX2s3u2L5racTO0CC/SWpCOasJQBCJrqLKXK+l82cAhdeF8mPMBEe/gxMm0ZFa2xpKpOFLRjxv5afYEZbBXmbQ==",
2265
+ "version": "7.59.0",
2266
+ "resolved": "https://registry.npmjs.org/openai/-/openai-7.59.0.tgz",
2267
+ "integrity": "sha512-wPYKJkLPFEdNJ2tThSg4jE1Ptsv4X3u8g8LIvu0Qz/UIhsKeCzl73rl48PtQsDVrJL/ku0liXOsbyd2TsRsPJw==",
2268
2268
  "license": "Apache-2.0",
2269
2269
  "engines": {
2270
2270
  "node": ">=22.0.0"
@@ -2273,6 +2273,7 @@
2273
2273
  "@aws-sdk/credential-provider-node": ">=3.972.0 <4",
2274
2274
  "@smithy/hash-node": ">=4.3.0 <5",
2275
2275
  "@smithy/signature-v4": ">=5.4.0 <6",
2276
+ "google-auth-library": ">=9.15.1 <12",
2276
2277
  "undici": ">=5 <9",
2277
2278
  "ws": "^8.21.0",
2278
2279
  "zod": "^3.25 || ^4.0"
@@ -2287,6 +2288,9 @@
2287
2288
  "@smithy/signature-v4": {
2288
2289
  "optional": true
2289
2290
  },
2291
+ "google-auth-library": {
2292
+ "optional": true
2293
+ },
2290
2294
  "undici": {
2291
2295
  "optional": true
2292
2296
  },
@@ -2684,9 +2688,9 @@
2684
2688
  }
2685
2689
  },
2686
2690
  "node_modules/undici": {
2687
- "version": "8.12.3",
2688
- "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.3.tgz",
2689
- "integrity": "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==",
2691
+ "version": "8.12.4",
2692
+ "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.4.tgz",
2693
+ "integrity": "sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==",
2690
2694
  "license": "MIT",
2691
2695
  "engines": {
2692
2696
  "node": ">=22.19.0"
@@ -2743,9 +2747,9 @@
2743
2747
  }
2744
2748
  },
2745
2749
  "node_modules/ws": {
2746
- "version": "8.22.1",
2747
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz",
2748
- "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==",
2750
+ "version": "8.23.0",
2751
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.0.tgz",
2752
+ "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==",
2749
2753
  "license": "MIT",
2750
2754
  "engines": {
2751
2755
  "node": ">=10.0.0"
@@ -2795,12 +2799,12 @@
2795
2799
  "name": "@loopwright/agent-pi",
2796
2800
  "version": "0.0.0",
2797
2801
  "dependencies": {
2798
- "@earendil-works/pi-agent-core": "1.5.2",
2799
- "@earendil-works/pi-ai": "1.5.2",
2800
- "@earendil-works/pi-codemode": "1.5.2",
2801
- "@earendil-works/pi-coding-agent": "1.5.2",
2802
- "@earendil-works/pi-mcp": "1.5.2",
2803
- "@earendil-works/pi-tui": "1.5.2",
2802
+ "@earendil-works/pi-agent-core": "1.6.0",
2803
+ "@earendil-works/pi-ai": "1.6.0",
2804
+ "@earendil-works/pi-codemode": "1.6.0",
2805
+ "@earendil-works/pi-coding-agent": "1.6.0",
2806
+ "@earendil-works/pi-mcp": "1.6.0",
2807
+ "@earendil-works/pi-tui": "1.6.0",
2804
2808
  "@loopwright/core": "0.0.0",
2805
2809
  "@loopwright/state": "0.0.0"
2806
2810
  },
package/package-lock.json CHANGED
@@ -456,33 +456,33 @@
456
456
  }
457
457
  },
458
458
  "node_modules/@earendil-works/pi-agent-core": {
459
- "version": "1.5.2",
460
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.5.2.tgz",
461
- "integrity": "sha512-ie5mejS7mGfXt//9As7i3LfxVXdktZvF1JP4EQsUXTp4mU437h23MNGx7wXZ5VYs3YiG/Qnj3e7OZ2HC069OMw==",
459
+ "version": "1.6.0",
460
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.6.0.tgz",
461
+ "integrity": "sha512-IU/x+2XtE4KIdIkEndZssdLPbIUR38Btj+Q7vjIIXIK7GSamLtDH5jOw/dzBWAvWFAgZ2dslF5sPc6GcGOnS+w==",
462
462
  "license": "MIT",
463
463
  "dependencies": {
464
- "@earendil-works/pi-ai": "1.5.2",
465
- "@earendil-works/pi-schema": "1.5.2"
464
+ "@earendil-works/pi-ai": "1.6.0",
465
+ "@earendil-works/pi-schema": "1.6.0"
466
466
  },
467
467
  "engines": {
468
468
  "node": ">=22.19.0"
469
469
  }
470
470
  },
471
471
  "node_modules/@earendil-works/pi-ai": {
472
- "version": "1.5.2",
473
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.5.2.tgz",
474
- "integrity": "sha512-2tWPSnV3qzfiDIY3aWluBag3vC++Vs+VsXt/UquSU5onPMohPih72FUhIhaqmDdMYubOgB3Byl9uF4Vk40JLvQ==",
472
+ "version": "1.6.0",
473
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.6.0.tgz",
474
+ "integrity": "sha512-9hL+eygFDEiFp//cydeUfmFsKmEqpmvsNPb10Y1W8+m5K9O+sx1hMStfu6nukrBD5sl6mP4RykCYBBNEgsVLfw==",
475
475
  "license": "MIT",
476
476
  "dependencies": {
477
477
  "@anthropic-ai/sdk": "0.129.0",
478
478
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
479
- "@earendil-works/pi-schema": "1.5.2",
480
- "@earendil-works/pi-telemetry": "1.5.2",
481
- "@google/genai": "2.21.0",
479
+ "@earendil-works/pi-schema": "1.6.0",
480
+ "@earendil-works/pi-telemetry": "1.6.0",
481
+ "@google/genai": "2.32.0",
482
482
  "@smithy/node-http-handler": "4.12.1",
483
483
  "http-proxy-agent": "9.1.0",
484
484
  "https-proxy-agent": "9.1.0",
485
- "openai": "7.19.0",
485
+ "openai": "7.59.0",
486
486
  "partial-json": "0.1.7"
487
487
  },
488
488
  "bin": {
@@ -493,9 +493,9 @@
493
493
  }
494
494
  },
495
495
  "node_modules/@earendil-works/pi-codemode": {
496
- "version": "1.5.2",
497
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.5.2.tgz",
498
- "integrity": "sha512-HoZQ40a9RgdZ1VgmrX6x8887cNXedaRJT1l+Ie5YRIMK4gY7v0EpsiNqf6dmixrKylZlTgUSyR+vE8xhjfkr+w==",
496
+ "version": "1.6.0",
497
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.6.0.tgz",
498
+ "integrity": "sha512-GAgAy7iJCVbeiuqq2dTIuNj3aXTMUeTF8Nu8LZs72e8ueGGDU5L3/D8VxzTHALIpQ1/q8u1tfmB3iYS2Nopchw==",
499
499
  "license": "MIT",
500
500
  "dependencies": {
501
501
  "quickjs-wasi": "3.6.2"
@@ -505,16 +505,16 @@
505
505
  }
506
506
  },
507
507
  "node_modules/@earendil-works/pi-coding-agent": {
508
- "version": "1.5.2",
509
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.5.2.tgz",
510
- "integrity": "sha512-mUWI04rqF1Vd/m1q+Ps1XeWsTXEVvRUnsmRa83I3Dzua0Tx5bYS93imeqtIfrXf7PkkaR6ERz+AuQhIJlom5yA==",
508
+ "version": "1.6.0",
509
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-coding-agent/-/pi-coding-agent-1.6.0.tgz",
510
+ "integrity": "sha512-zX1BVEsshx7A2MRuQ6jfr3RJGWw4Wn+vLq5ZfmlvS1RskhRmByaSZVXH/zcwRrWHO7qPgs98pNCbPOEti/t0fQ==",
511
511
  "license": "MIT",
512
512
  "dependencies": {
513
- "@earendil-works/pi-agent-core": "1.5.2",
514
- "@earendil-works/pi-ai": "1.5.2",
515
- "@earendil-works/pi-codemode": "1.5.2",
516
- "@earendil-works/pi-mcp": "1.5.2",
517
- "@earendil-works/pi-tui": "1.5.2",
513
+ "@earendil-works/pi-agent-core": "1.6.0",
514
+ "@earendil-works/pi-ai": "1.6.0",
515
+ "@earendil-works/pi-codemode": "1.6.0",
516
+ "@earendil-works/pi-mcp": "1.6.0",
517
+ "@earendil-works/pi-tui": "1.6.0",
518
518
  "@silvia-odwyer/photon-node": "0.3.4",
519
519
  "brace-expansion": "5.0.12",
520
520
  "chalk": "6.0.0",
@@ -530,7 +530,7 @@
530
530
  "quickjs-wasi": "3.6.2",
531
531
  "semver": "7.8.5",
532
532
  "typebox": "1.3.27",
533
- "undici": "8.12.3",
533
+ "undici": "8.12.4",
534
534
  "yaml": "2.9.0"
535
535
  },
536
536
  "bin": {
@@ -562,9 +562,9 @@
562
562
  }
563
563
  },
564
564
  "node_modules/@earendil-works/pi-mcp": {
565
- "version": "1.5.2",
566
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.5.2.tgz",
567
- "integrity": "sha512-zU1UgeXDlbixPqGEWD7Ql0brEMIpYr7aEWjoEE5h5enJbM/kQ2jIr7lN8JoR80oUnq1fJSU7SC8kLx2Fx/IZYg==",
565
+ "version": "1.6.0",
566
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-mcp/-/pi-mcp-1.6.0.tgz",
567
+ "integrity": "sha512-dhqAR6MP8Fp3b8LEcBFOyxMZpGSozUAdzF0Dbl7OvojsjZrQsDV3ZKn85WRbwjHb4WjQUCVBsIZXwoyQxXeunw==",
568
568
  "license": "MIT",
569
569
  "dependencies": {
570
570
  "cross-spawn": "7.0.6"
@@ -574,27 +574,27 @@
574
574
  }
575
575
  },
576
576
  "node_modules/@earendil-works/pi-schema": {
577
- "version": "1.5.2",
578
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.5.2.tgz",
579
- "integrity": "sha512-hJoyCXWUhsSrXY5wJo2Q4kHXUsR51pNhkJHAMkWRwVMLDRtMDPkKNaa+JlVRVqTw1hjdSxcVVaFLSDbKlaTXEQ==",
577
+ "version": "1.6.0",
578
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-schema/-/pi-schema-1.6.0.tgz",
579
+ "integrity": "sha512-jD0VRCUcFzWQ5zN82pOuoHNN42/3pu4E5krtpiKknvPq4g2m+fuO38lj+xnZhuVpYcd2G0qlmr8lE6ZMzkad7Q==",
580
580
  "license": "MIT",
581
581
  "engines": {
582
582
  "node": ">=22.19.0"
583
583
  }
584
584
  },
585
585
  "node_modules/@earendil-works/pi-telemetry": {
586
- "version": "1.5.2",
587
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.5.2.tgz",
588
- "integrity": "sha512-m+cumjIqNh1aMISi/9ttcG3ZOwIdriPbz/eMyWmRMJCGa/WcgY1RX4lrb7HvsHhSfI/JUeBESA4nOCr8C3y5ow==",
586
+ "version": "1.6.0",
587
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.6.0.tgz",
588
+ "integrity": "sha512-MNL0TvtpgoSfX7mBLSVgzxTW6yvT8VLEpHvbWnZsIp92FtqVvx+4q9DxWZdX8KvcQqBs0GseAgVnLdVFinjN9Q==",
589
589
  "license": "MIT",
590
590
  "engines": {
591
591
  "node": ">=22.19.0"
592
592
  }
593
593
  },
594
594
  "node_modules/@earendil-works/pi-tui": {
595
- "version": "1.5.2",
596
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.5.2.tgz",
597
- "integrity": "sha512-WK8ih+c88GWizaB79y7Pq3PV7ySf5VI1pZ1i/6aBBjDOAiG2EE3ojKjl+pxQqLfyQGnzHYu4VfakOBJgumuoyw==",
595
+ "version": "1.6.0",
596
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.6.0.tgz",
597
+ "integrity": "sha512-nVtWZ4rYr3KHDla3skGAWG5XoITEUJCoEx1AsWv1yKxV7+v86ulD2hxVn/P+COI6jsoeQmj3orqHbCHZwAUsUg==",
598
598
  "license": "MIT",
599
599
  "dependencies": {
600
600
  "get-east-asian-width": "1.6.0",
@@ -734,9 +734,9 @@
734
734
  }
735
735
  },
736
736
  "node_modules/@google/genai": {
737
- "version": "2.21.0",
738
- "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.21.0.tgz",
739
- "integrity": "sha512-+PDtco2/Z0ONdzCGekCoCT+O1VJS9xJQNN4XzQpXG/t3El/SWWMkCWlFRO1KmivOHPa4Q0VjUYu1HBKCZ/v33Q==",
737
+ "version": "2.32.0",
738
+ "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.32.0.tgz",
739
+ "integrity": "sha512-60c79uXpR0a47bmGqDxbXEBuQUalNmwo5mx5kqb91jIW4FoqpsLSt86DeVhRhtH5+s/16Wqxt3sXzFQn2U1OHQ==",
740
740
  "hasInstallScript": true,
741
741
  "license": "Apache-2.0",
742
742
  "dependencies": {
@@ -2262,9 +2262,9 @@
2262
2262
  }
2263
2263
  },
2264
2264
  "node_modules/openai": {
2265
- "version": "7.19.0",
2266
- "resolved": "https://registry.npmjs.org/openai/-/openai-7.19.0.tgz",
2267
- "integrity": "sha512-MX2s3u2L5racTO0CC/SWpCOasJQBCJrqLKXK+l82cAhdeF8mPMBEe/gxMm0ZFa2xpKpOFLRjxv5afYEZbBXmbQ==",
2265
+ "version": "7.59.0",
2266
+ "resolved": "https://registry.npmjs.org/openai/-/openai-7.59.0.tgz",
2267
+ "integrity": "sha512-wPYKJkLPFEdNJ2tThSg4jE1Ptsv4X3u8g8LIvu0Qz/UIhsKeCzl73rl48PtQsDVrJL/ku0liXOsbyd2TsRsPJw==",
2268
2268
  "license": "Apache-2.0",
2269
2269
  "engines": {
2270
2270
  "node": ">=22.0.0"
@@ -2273,6 +2273,7 @@
2273
2273
  "@aws-sdk/credential-provider-node": ">=3.972.0 <4",
2274
2274
  "@smithy/hash-node": ">=4.3.0 <5",
2275
2275
  "@smithy/signature-v4": ">=5.4.0 <6",
2276
+ "google-auth-library": ">=9.15.1 <12",
2276
2277
  "undici": ">=5 <9",
2277
2278
  "ws": "^8.21.0",
2278
2279
  "zod": "^3.25 || ^4.0"
@@ -2287,6 +2288,9 @@
2287
2288
  "@smithy/signature-v4": {
2288
2289
  "optional": true
2289
2290
  },
2291
+ "google-auth-library": {
2292
+ "optional": true
2293
+ },
2290
2294
  "undici": {
2291
2295
  "optional": true
2292
2296
  },
@@ -2684,9 +2688,9 @@
2684
2688
  }
2685
2689
  },
2686
2690
  "node_modules/undici": {
2687
- "version": "8.12.3",
2688
- "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.3.tgz",
2689
- "integrity": "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==",
2691
+ "version": "8.12.4",
2692
+ "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.4.tgz",
2693
+ "integrity": "sha512-8Mx+uNKKER2bA4AdtedkqRbwUCIJFr2nJckXRe5yrDqzePqwLP7VNcctN8/XdmDSbF7mS+jJKIszlL+vbam1VA==",
2690
2694
  "license": "MIT",
2691
2695
  "engines": {
2692
2696
  "node": ">=22.19.0"
@@ -2743,9 +2747,9 @@
2743
2747
  }
2744
2748
  },
2745
2749
  "node_modules/ws": {
2746
- "version": "8.22.1",
2747
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz",
2748
- "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==",
2750
+ "version": "8.23.0",
2751
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.0.tgz",
2752
+ "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==",
2749
2753
  "license": "MIT",
2750
2754
  "engines": {
2751
2755
  "node": ">=10.0.0"
@@ -2795,12 +2799,12 @@
2795
2799
  "name": "@loopwright/agent-pi",
2796
2800
  "version": "0.0.0",
2797
2801
  "dependencies": {
2798
- "@earendil-works/pi-agent-core": "1.5.2",
2799
- "@earendil-works/pi-ai": "1.5.2",
2800
- "@earendil-works/pi-codemode": "1.5.2",
2801
- "@earendil-works/pi-coding-agent": "1.5.2",
2802
- "@earendil-works/pi-mcp": "1.5.2",
2803
- "@earendil-works/pi-tui": "1.5.2",
2802
+ "@earendil-works/pi-agent-core": "1.6.0",
2803
+ "@earendil-works/pi-ai": "1.6.0",
2804
+ "@earendil-works/pi-codemode": "1.6.0",
2805
+ "@earendil-works/pi-coding-agent": "1.6.0",
2806
+ "@earendil-works/pi-mcp": "1.6.0",
2807
+ "@earendil-works/pi-tui": "1.6.0",
2804
2808
  "@loopwright/core": "0.0.0",
2805
2809
  "@loopwright/state": "0.0.0"
2806
2810
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpustack/loopwright",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Bounded, verified repository automation harness and CLI",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -42,12 +42,12 @@
42
42
  "@loopwright/cli"
43
43
  ],
44
44
  "dependencies": {
45
- "@earendil-works/pi-agent-core": "1.5.2",
46
- "@earendil-works/pi-ai": "1.5.2",
47
- "@earendil-works/pi-codemode": "1.5.2",
48
- "@earendil-works/pi-coding-agent": "1.5.2",
49
- "@earendil-works/pi-mcp": "1.5.2",
50
- "@earendil-works/pi-tui": "1.5.2",
45
+ "@earendil-works/pi-agent-core": "1.6.0",
46
+ "@earendil-works/pi-ai": "1.6.0",
47
+ "@earendil-works/pi-codemode": "1.6.0",
48
+ "@earendil-works/pi-coding-agent": "1.6.0",
49
+ "@earendil-works/pi-mcp": "1.6.0",
50
+ "@earendil-works/pi-tui": "1.6.0",
51
51
  "minimatch": "11.0.1",
52
52
  "yaml": "2.9.1"
53
53
  }