agent-web-os 0.1.14 → 0.1.15

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/dist/index.cjs CHANGED
@@ -62353,7 +62353,8 @@ var DEFAULT_BASH_SHELL_ENV = {
62353
62353
  LANG: "C.UTF-8",
62354
62354
  LC_ALL: "C.UTF-8",
62355
62355
  PYTHONIOENCODING: "utf-8",
62356
- PYTHONUTF8: "1"
62356
+ PYTHONUTF8: "1",
62357
+ PI_OFFLINE: "1"
62357
62358
  };
62358
62359
  var DEFAULT_BASH_COMMAND_TIMEOUT_MS = 5 * 60 * 1e3;
62359
62360
  var DEFAULT_BASH_OUTPUT_LIMIT = 1e4;
@@ -62388,6 +62389,10 @@ function createBrowserBashSession(options2 = {}) {
62388
62389
  const env = options2.env ?? { ...DEFAULT_BASH_SHELL_ENV };
62389
62390
  const fs = new ObservableInMemoryFs(options2.fsOptions);
62390
62391
  fs.mkdirSync(rootPath, { recursive: true });
62392
+ const piBinDir = "/home/user/.pi/agent/bin";
62393
+ fs.mkdirSync(piBinDir, { recursive: true });
62394
+ fs.writeFileSync(`${piBinDir}/rg`, '#!/bin/sh\nrg "$@"\n');
62395
+ fs.writeFileSync(`${piBinDir}/fd`, '#!/bin/sh\nfd "$@"\n');
62391
62396
  const almostNodeSession = createAlmostNodeSession(fs);
62392
62397
  const bash = new Ju({
62393
62398
  cwd: rootPath,
@@ -62483,7 +62488,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
62483
62488
  }
62484
62489
 
62485
62490
  // src/index.ts
62486
- var AGENT_WEB_OS_VERSION = "0.1.14";
62491
+ var AGENT_WEB_OS_VERSION = "0.1.15";
62487
62492
  console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
62488
62493
  var getServerBridge2 = getServerBridge;
62489
62494
  var resetServerBridge2 = resetServerBridge;