doer-agent 0.1.3 → 0.1.5

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/agent.js CHANGED
@@ -969,10 +969,11 @@ async function runTask(args) {
969
969
  cwd: taskWorkspace,
970
970
  baseEnvPatch: baseTaskEnvPatch,
971
971
  });
972
- await ensureCodexPlaywrightMcpLauncher();
973
- const codexMcpEnvPatch = {
974
- PLAYWRIGHT_SKIP_BROWSER_GC: PLAYWRIGHT_SKIP_BROWSER_GC,
975
- };
972
+ const codexMcpEnvPatch = {};
973
+ if (process.platform !== "win32") {
974
+ await ensureCodexPlaywrightMcpLauncher();
975
+ codexMcpEnvPatch.PLAYWRIGHT_SKIP_BROWSER_GC = PLAYWRIGHT_SKIP_BROWSER_GC;
976
+ }
976
977
  await recordAgentEvent({ jetstream: args.jetstream,
977
978
  serverBaseUrl: args.serverBaseUrl,
978
979
  taskId: args.taskId,
@@ -14,6 +14,9 @@ function parseInteger(value, fallback) {
14
14
  const socketPath = process.env.DOER_PLAYWRIGHT_MCP_DAEMON_SOCKET?.trim() || "";
15
15
  const targetCommand = process.env.DOER_PLAYWRIGHT_MCP_TARGET_COMMAND?.trim() || "";
16
16
  const idleTtlSeconds = parseInteger(process.env.DOER_PLAYWRIGHT_MCP_DAEMON_IDLE_TTL_SECONDS, 10800);
17
+ function isWindowsNamedPipePath(value) {
18
+ return process.platform === "win32" && value.startsWith("\\\\.\\pipe\\");
19
+ }
17
20
  let targetArgs = [];
18
21
  try {
19
22
  const parsed = JSON.parse(process.env.DOER_PLAYWRIGHT_MCP_TARGET_ARGS_JSON || "[]");
@@ -103,15 +106,17 @@ async function shutdown(server) {
103
106
  child = null;
104
107
  }
105
108
  await new Promise((resolve) => server.close(() => resolve()));
106
- if (existsSync(socketPath)) {
109
+ if (!isWindowsNamedPipePath(socketPath) && existsSync(socketPath)) {
107
110
  await rm(socketPath, { force: true });
108
111
  }
109
112
  process.exit(0);
110
113
  }
111
114
  async function main() {
112
- await mkdir(path.dirname(socketPath), { recursive: true });
113
- if (existsSync(socketPath)) {
114
- await rm(socketPath, { force: true });
115
+ if (!isWindowsNamedPipePath(socketPath)) {
116
+ await mkdir(path.dirname(socketPath), { recursive: true });
117
+ if (existsSync(socketPath)) {
118
+ await rm(socketPath, { force: true });
119
+ }
115
120
  }
116
121
  const server = net.createServer((socket) => {
117
122
  if (activeClient && !activeClient.destroyed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doer-agent",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Reverse-polling agent runtime for doer",
5
5
  "type": "module",
6
6
  "main": "dist/agent.js",