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.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -62098,6 +62098,17 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
|
|
|
62098
62098
|
stdoutAny.columns = this._terminalColumns;
|
|
62099
62099
|
stdoutAny.rows = this._terminalRows;
|
|
62100
62100
|
stdoutAny.getWindowSize = () => [this._terminalColumns, this._terminalRows];
|
|
62101
|
+
let rawModeRequested = false;
|
|
62102
|
+
if (process4.stdin) {
|
|
62103
|
+
const originalSetRawMode = process4.stdin.setRawMode;
|
|
62104
|
+
process4.stdin.setRawMode = (mode) => {
|
|
62105
|
+
rawModeRequested = rawModeRequested || mode;
|
|
62106
|
+
if (typeof originalSetRawMode === "function") {
|
|
62107
|
+
return originalSetRawMode.call(process4.stdin, mode);
|
|
62108
|
+
}
|
|
62109
|
+
return process4.stdin;
|
|
62110
|
+
};
|
|
62111
|
+
}
|
|
62101
62112
|
this._stdinHandler = process4.stdin ? (data2) => {
|
|
62102
62113
|
process4.stdin.emit("data", data2);
|
|
62103
62114
|
} : null;
|
|
@@ -62165,7 +62176,11 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
|
|
|
62165
62176
|
runtime.runFile(invocation.scriptPath);
|
|
62166
62177
|
}
|
|
62167
62178
|
syncExecution = false;
|
|
62168
|
-
|
|
62179
|
+
await new Promise((resolve5) => {
|
|
62180
|
+
setTimeout(resolve5, 0);
|
|
62181
|
+
});
|
|
62182
|
+
const hasStdinListeners = process4.stdin && (process4.stdin.listenerCount("data") > 0 || process4.stdin.listenerCount("keypress") > 0);
|
|
62183
|
+
const isInteractive = hasStdinListeners || rawModeRequested;
|
|
62169
62184
|
const asyncExitCode = isInteractive ? await exitPromise : await Promise.race([
|
|
62170
62185
|
exitPromise,
|
|
62171
62186
|
new Promise((resolve5) => {
|
|
@@ -62879,7 +62894,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
|
|
|
62879
62894
|
}
|
|
62880
62895
|
|
|
62881
62896
|
// src/index.ts
|
|
62882
|
-
var AGENT_WEB_OS_VERSION = "0.1.
|
|
62897
|
+
var AGENT_WEB_OS_VERSION = "0.1.19";
|
|
62883
62898
|
console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
|
|
62884
62899
|
var getServerBridge2 = getServerBridge;
|
|
62885
62900
|
var resetServerBridge2 = resetServerBridge;
|