agent-web-os 0.1.17 → 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.d.cts CHANGED
@@ -285,7 +285,7 @@ declare function executeBrowserBash(session: BrowserBashSession, command: string
285
285
 
286
286
  declare function executeFd(args: string[], ctx: CommandContext): Promise<ExecResult>;
287
287
 
288
- declare const AGENT_WEB_OS_VERSION = "0.1.17";
288
+ declare const AGENT_WEB_OS_VERSION = "0.1.18";
289
289
 
290
290
  type ServerBridge = {
291
291
  initServiceWorker(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -285,7 +285,7 @@ declare function executeBrowserBash(session: BrowserBashSession, command: string
285
285
 
286
286
  declare function executeFd(args: string[], ctx: CommandContext): Promise<ExecResult>;
287
287
 
288
- declare const AGENT_WEB_OS_VERSION = "0.1.17";
288
+ declare const AGENT_WEB_OS_VERSION = "0.1.18";
289
289
 
290
290
  type ServerBridge = {
291
291
  initServiceWorker(): Promise<void>;
package/dist/index.js CHANGED
@@ -36554,12 +36554,16 @@ async function readPathState(fs, path2) {
36554
36554
  entryType: "file"
36555
36555
  };
36556
36556
  }
36557
- const stat = await fs.lstat(path2);
36558
- const entryType = stat.isDirectory ? "directory" : stat.isSymbolicLink ? "symlink" : "file";
36559
- return {
36560
- exists: true,
36561
- entryType
36562
- };
36557
+ try {
36558
+ const stat = await fs.lstat(path2);
36559
+ const entryType = stat.isDirectory ? "directory" : stat.isSymbolicLink ? "symlink" : "file";
36560
+ return {
36561
+ exists: true,
36562
+ entryType
36563
+ };
36564
+ } catch {
36565
+ return { exists: false };
36566
+ }
36563
36567
  }
36564
36568
  function mapAddEvent(entryType) {
36565
36569
  return entryType === "directory" ? "addDir" : "add";
@@ -56318,6 +56322,13 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
56318
56322
  process4.argv = invocation.argv;
56319
56323
  process4.argv0 = "node";
56320
56324
  process4.execPath = NODE_EXEC_PATH;
56325
+ if (process4.pid == null) {
56326
+ process4.pid = 1;
56327
+ }
56328
+ if (typeof process4.kill !== "function") {
56329
+ process4.kill = () => {
56330
+ };
56331
+ }
56321
56332
  const rejectionHandler = (event) => {
56322
56333
  const reason = event.reason;
56323
56334
  if (reason instanceof Error && reason.message.startsWith("Process exited with code")) {
@@ -56335,7 +56346,6 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
56335
56346
  runtime.runFile(invocation.scriptPath);
56336
56347
  }
56337
56348
  syncExecution = false;
56338
- await new Promise((r10) => setTimeout(r10, 0));
56339
56349
  const isInteractive = process4.stdin && (process4.stdin.listenerCount("data") > 0 || process4.stdin.listenerCount("keypress") > 0);
56340
56350
  const asyncExitCode = isInteractive ? await exitPromise : await Promise.race([
56341
56351
  exitPromise,
@@ -57050,7 +57060,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
57050
57060
  }
57051
57061
 
57052
57062
  // src/index.ts
57053
- var AGENT_WEB_OS_VERSION = "0.1.17";
57063
+ var AGENT_WEB_OS_VERSION = "0.1.18";
57054
57064
  console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
57055
57065
  var getServerBridge2 = getServerBridge;
57056
57066
  var resetServerBridge2 = resetServerBridge;