agent-web-os 0.1.16 → 0.1.18

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
@@ -42362,12 +42362,16 @@ async function readPathState(fs, path2) {
42362
42362
  entryType: "file"
42363
42363
  };
42364
42364
  }
42365
- const stat = await fs.lstat(path2);
42366
- const entryType = stat.isDirectory ? "directory" : stat.isSymbolicLink ? "symlink" : "file";
42367
- return {
42368
- exists: true,
42369
- entryType
42370
- };
42365
+ try {
42366
+ const stat = await fs.lstat(path2);
42367
+ const entryType = stat.isDirectory ? "directory" : stat.isSymbolicLink ? "symlink" : "file";
42368
+ return {
42369
+ exists: true,
42370
+ entryType
42371
+ };
42372
+ } catch {
42373
+ return { exists: false };
42374
+ }
42371
42375
  }
42372
42376
  function mapAddEvent(entryType) {
42373
42377
  return entryType === "directory" ? "addDir" : "add";
@@ -62137,6 +62141,13 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
62137
62141
  process4.argv = invocation.argv;
62138
62142
  process4.argv0 = "node";
62139
62143
  process4.execPath = NODE_EXEC_PATH;
62144
+ if (process4.pid == null) {
62145
+ process4.pid = 1;
62146
+ }
62147
+ if (typeof process4.kill !== "function") {
62148
+ process4.kill = () => {
62149
+ };
62150
+ }
62140
62151
  const rejectionHandler = (event) => {
62141
62152
  const reason = event.reason;
62142
62153
  if (reason instanceof Error && reason.message.startsWith("Process exited with code")) {
@@ -62868,7 +62879,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
62868
62879
  }
62869
62880
 
62870
62881
  // src/index.ts
62871
- var AGENT_WEB_OS_VERSION = "0.1.16";
62882
+ var AGENT_WEB_OS_VERSION = "0.1.18";
62872
62883
  console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
62873
62884
  var getServerBridge2 = getServerBridge;
62874
62885
  var resetServerBridge2 = resetServerBridge;