claude-task-worker 0.125.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.
@@ -1,4 +1,5 @@
1
1
  export declare const PLAYWRIGHT_CORE_PACKAGE = "playwright-core";
2
+ export declare const PLAYWRIGHT_MCP_PACKAGE = "@playwright/mcp";
2
3
  /**
3
4
  * `install-deps`(chromium が要求するシステムライブラリの導入)の実行コマンドを組み立てる。
4
5
  *
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", ["-y", `${PLAYWRIGHT_CORE_PACKAGE}@latest`, "install", "chromium"]);
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}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-task-worker",
3
- "version": "0.125.0",
3
+ "version": "0.127.0",
4
4
  "description": "CLI tool that polls GitHub Issues/PRs and delegates work to Claude CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",