claude-task-worker 0.126.0 → 0.127.0
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/commands/playwright.d.ts +1 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1121,17 +1121,17 @@ async function loadRunCommand4() {
|
|
|
1121
1121
|
return await import("./run-command-O2TMRPZK.js");
|
|
1122
1122
|
}
|
|
1123
1123
|
var PLAYWRIGHT_CORE_PACKAGE = "playwright-core";
|
|
1124
|
+
var PLAYWRIGHT_MCP_PACKAGE = "@playwright/mcp";
|
|
1125
|
+
var INSTALL_BROWSER_ARGS = ["-y", `${PLAYWRIGHT_MCP_PACKAGE}@latest`, "install-browser", "--no-shell", "chromium"];
|
|
1124
1126
|
function buildInstallDepsCommand(uid) {
|
|
1125
1127
|
const npxArgs = ["-y", `${PLAYWRIGHT_CORE_PACKAGE}@latest`, "install-deps", "chromium"];
|
|
1126
1128
|
return uid === 0 ? { command: "npx", args: npxArgs } : { command: "sudo", args: ["npx", ...npxArgs] };
|
|
1127
1129
|
}
|
|
1128
1130
|
async function installPlaywrightBrowsers(logPrefix) {
|
|
1129
1131
|
const { runCommand: runCommand2 } = await loadRunCommand4();
|
|
1130
|
-
console.log(
|
|
1131
|
-
`[${logPrefix}] Installing Playwright browsers (npx ${PLAYWRIGHT_CORE_PACKAGE}@latest install chromium)...`
|
|
1132
|
-
);
|
|
1132
|
+
console.log(`[${logPrefix}] Installing Playwright browsers (npx ${INSTALL_BROWSER_ARGS.join(" ")})...`);
|
|
1133
1133
|
try {
|
|
1134
|
-
await runCommand2("npx",
|
|
1134
|
+
await runCommand2("npx", INSTALL_BROWSER_ARGS);
|
|
1135
1135
|
console.log(`[${logPrefix}] Playwright browsers installed.`);
|
|
1136
1136
|
} catch (err) {
|
|
1137
1137
|
console.error(`[${logPrefix}] Failed to install Playwright browsers: ${err.message}`);
|