agent-web-os 0.1.16 → 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 -7
- 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 -7
- 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.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.
|
|
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
|
-
|
|
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";
|
|
@@ -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")) {
|
|
@@ -57049,7 +57060,7 @@ async function executeBrowserBash(session, command, options2 = {}) {
|
|
|
57049
57060
|
}
|
|
57050
57061
|
|
|
57051
57062
|
// src/index.ts
|
|
57052
|
-
var AGENT_WEB_OS_VERSION = "0.1.
|
|
57063
|
+
var AGENT_WEB_OS_VERSION = "0.1.18";
|
|
57053
57064
|
console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
|
|
57054
57065
|
var getServerBridge2 = getServerBridge;
|
|
57055
57066
|
var resetServerBridge2 = resetServerBridge;
|