agent-web-os 0.1.17 → 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 +34 -9
- 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 +34 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
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
|
@@ -36554,12 +36554,16 @@ async function readPathState(fs, path2) {
|
|
|
36554
36554
|
entryType: "file"
|
|
36555
36555
|
};
|
|
36556
36556
|
}
|
|
36557
|
-
|
|
36558
|
-
|
|
36559
|
-
|
|
36560
|
-
|
|
36561
|
-
|
|
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";
|
|
@@ -56275,6 +56279,17 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
|
|
|
56275
56279
|
stdoutAny.columns = this._terminalColumns;
|
|
56276
56280
|
stdoutAny.rows = this._terminalRows;
|
|
56277
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
|
+
}
|
|
56278
56293
|
this._stdinHandler = process4.stdin ? (data2) => {
|
|
56279
56294
|
process4.stdin.emit("data", data2);
|
|
56280
56295
|
} : null;
|
|
@@ -56318,6 +56333,13 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
|
|
|
56318
56333
|
process4.argv = invocation.argv;
|
|
56319
56334
|
process4.argv0 = "node";
|
|
56320
56335
|
process4.execPath = NODE_EXEC_PATH;
|
|
56336
|
+
if (process4.pid == null) {
|
|
56337
|
+
process4.pid = 1;
|
|
56338
|
+
}
|
|
56339
|
+
if (typeof process4.kill !== "function") {
|
|
56340
|
+
process4.kill = () => {
|
|
56341
|
+
};
|
|
56342
|
+
}
|
|
56321
56343
|
const rejectionHandler = (event) => {
|
|
56322
56344
|
const reason = event.reason;
|
|
56323
56345
|
if (reason instanceof Error && reason.message.startsWith("Process exited with code")) {
|
|
@@ -56335,8 +56357,11 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
|
|
|
56335
56357
|
runtime.runFile(invocation.scriptPath);
|
|
56336
56358
|
}
|
|
56337
56359
|
syncExecution = false;
|
|
56338
|
-
await new Promise((
|
|
56339
|
-
|
|
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;
|
|
56340
56365
|
const asyncExitCode = isInteractive ? await exitPromise : await Promise.race([
|
|
56341
56366
|
exitPromise,
|
|
56342
56367
|
new Promise((resolve5) => {
|
|
@@ -57050,7 +57075,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
|
|
|
57050
57075
|
}
|
|
57051
57076
|
|
|
57052
57077
|
// src/index.ts
|
|
57053
|
-
var AGENT_WEB_OS_VERSION = "0.1.
|
|
57078
|
+
var AGENT_WEB_OS_VERSION = "0.1.19";
|
|
57054
57079
|
console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
|
|
57055
57080
|
var getServerBridge2 = getServerBridge;
|
|
57056
57081
|
var resetServerBridge2 = resetServerBridge;
|