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.cjs +18 -8
- 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 +18 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -42362,12 +42362,16 @@ async function readPathState(fs, path2) {
|
|
|
42362
42362
|
entryType: "file"
|
|
42363
42363
|
};
|
|
42364
42364
|
}
|
|
42365
|
-
|
|
42366
|
-
|
|
42367
|
-
|
|
42368
|
-
|
|
42369
|
-
|
|
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")) {
|
|
@@ -62154,7 +62165,6 @@ ${packages.map(([name, version4]) => `+-- ${name}@${version4}`).join("\n")}
|
|
|
62154
62165
|
runtime.runFile(invocation.scriptPath);
|
|
62155
62166
|
}
|
|
62156
62167
|
syncExecution = false;
|
|
62157
|
-
await new Promise((r10) => setTimeout(r10, 0));
|
|
62158
62168
|
const isInteractive = process4.stdin && (process4.stdin.listenerCount("data") > 0 || process4.stdin.listenerCount("keypress") > 0);
|
|
62159
62169
|
const asyncExitCode = isInteractive ? await exitPromise : await Promise.race([
|
|
62160
62170
|
exitPromise,
|
|
@@ -62869,7 +62879,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
|
|
|
62869
62879
|
}
|
|
62870
62880
|
|
|
62871
62881
|
// src/index.ts
|
|
62872
|
-
var AGENT_WEB_OS_VERSION = "0.1.
|
|
62882
|
+
var AGENT_WEB_OS_VERSION = "0.1.18";
|
|
62873
62883
|
console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
|
|
62874
62884
|
var getServerBridge2 = getServerBridge;
|
|
62875
62885
|
var resetServerBridge2 = resetServerBridge;
|