agent-web-os 0.1.18 → 0.1.19

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.18";
288
+ declare const AGENT_WEB_OS_VERSION = "0.1.19";
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.18";
288
+ declare const AGENT_WEB_OS_VERSION = "0.1.19";
289
289
 
290
290
  type ServerBridge = {
291
291
  initServiceWorker(): Promise<void>;
package/dist/index.js CHANGED
@@ -56279,6 +56279,17 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
56279
56279
  stdoutAny.columns = this._terminalColumns;
56280
56280
  stdoutAny.rows = this._terminalRows;
56281
56281
  stdoutAny.getWindowSize = () => [this._terminalColumns, this._terminalRows];
56282
+ let rawModeRequested = false;
56283
+ if (process4.stdin) {
56284
+ const originalSetRawMode = process4.stdin.setRawMode;
56285
+ process4.stdin.setRawMode = (mode) => {
56286
+ rawModeRequested = rawModeRequested || mode;
56287
+ if (typeof originalSetRawMode === "function") {
56288
+ return originalSetRawMode.call(process4.stdin, mode);
56289
+ }
56290
+ return process4.stdin;
56291
+ };
56292
+ }
56282
56293
  this._stdinHandler = process4.stdin ? (data2) => {
56283
56294
  process4.stdin.emit("data", data2);
56284
56295
  } : null;
@@ -56346,7 +56357,11 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
56346
56357
  runtime.runFile(invocation.scriptPath);
56347
56358
  }
56348
56359
  syncExecution = false;
56349
- const isInteractive = process4.stdin && (process4.stdin.listenerCount("data") > 0 || process4.stdin.listenerCount("keypress") > 0);
56360
+ await new Promise((resolve5) => {
56361
+ setTimeout(resolve5, 0);
56362
+ });
56363
+ const hasStdinListeners = process4.stdin && (process4.stdin.listenerCount("data") > 0 || process4.stdin.listenerCount("keypress") > 0);
56364
+ const isInteractive = hasStdinListeners || rawModeRequested;
56350
56365
  const asyncExitCode = isInteractive ? await exitPromise : await Promise.race([
56351
56366
  exitPromise,
56352
56367
  new Promise((resolve5) => {
@@ -57060,7 +57075,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
57060
57075
  }
57061
57076
 
57062
57077
  // src/index.ts
57063
- var AGENT_WEB_OS_VERSION = "0.1.18";
57078
+ var AGENT_WEB_OS_VERSION = "0.1.19";
57064
57079
  console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
57065
57080
  var getServerBridge2 = getServerBridge;
57066
57081
  var resetServerBridge2 = resetServerBridge;