claude-task-worker 0.139.0 → 0.140.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/README.md
CHANGED
|
@@ -60,7 +60,7 @@ CLI が GitHub ラベルを検知してタスクを起動し、プラグイン
|
|
|
60
60
|
| [Claude Code (`claude`)](https://docs.anthropic.com/en/docs/claude-code) | タスク実行エンジン |
|
|
61
61
|
| [Git](https://git-scm.com/) / [jq](https://jqlang.org/) | worktree 操作 / スキル内での JSON 加工 |
|
|
62
62
|
| [CodeGraph](https://www.npmjs.com/package/@colbymchenry/codegraph) | コード探索用インデックス(任意。未導入ならテキスト検索に落ちる) |
|
|
63
|
-
| [Playwright](https://playwright.dev/)
|
|
63
|
+
| [Playwright](https://playwright.dev/) のブラウザ(Google Chrome) | Playwright MCP でのブラウザ確認(起動済みの Chrome に CDP `http://localhost:9222` で接続する。Chrome を `--remote-debugging-port=9222 --user-data-dir=<任意のディレクトリ>` 付きで起動しておく)、`.pen` のスナップショット描画 |
|
|
64
64
|
| [DESIGN.md CLI](https://github.com/google-labs-code/design.md) | `DESIGN.md` の lint。`update-design-md` 使用時のみ(未導入でも動く) |
|
|
65
65
|
| [herdr](https://herdr.dev) | `--project` / `mode: "herdr"` 使用時のみ(`--cloud` は herdr に依存しない) |
|
|
66
66
|
| [GitHub MCP](https://github.com/github/github-mcp-server) | GitHub アクセスの高速化・クラウド実行時のプロキシ制限回避(任意。Claude 側のコネクタで有効化) |
|
|
@@ -254,7 +254,7 @@ claude-task-worker init --inherit-config ~/ctw/shared.json # 指定パスへ
|
|
|
254
254
|
|
|
255
255
|
```bash
|
|
256
256
|
node plugin/scripts/pen.mjs validate design.pen # ID重複・参照切れ・未知プロパティなどの検査
|
|
257
|
-
node plugin/scripts/pen.mjs render design.pen --out out/ #
|
|
257
|
+
node plugin/scripts/pen.mjs render design.pen --out out/ # Chrome で描画して PNG 出力
|
|
258
258
|
```
|
|
259
259
|
|
|
260
260
|
画像は pen.dev 本体ではなく HTML/CSS へ変換して描画した近似で、描画しきれない表現(取得できなかったフォント・アイコン、shader など)は警告として出る。フォントは Google Fonts、アイコンは unpkg から取得する。
|
|
@@ -2204,7 +2204,7 @@ function buildRuncatSnapshot(usage, now = /* @__PURE__ */ new Date()) {
|
|
|
2204
2204
|
];
|
|
2205
2205
|
const present = windows.filter((w) => w[1] !== null);
|
|
2206
2206
|
const bar = present.map(([, pct]) => formatG(pct)).join("/");
|
|
2207
|
-
const stamp =
|
|
2207
|
+
const stamp = usage.fiveHourUtilization !== null ? resetHour(usage.fiveHourResetsAt) : "";
|
|
2208
2208
|
return {
|
|
2209
2209
|
title: "Claude Code",
|
|
2210
2210
|
symbol: "staroflife",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const PLAYWRIGHT_CORE_PACKAGE = "playwright-core";
|
|
2
2
|
export declare const PLAYWRIGHT_MCP_PACKAGE = "@playwright/mcp";
|
|
3
3
|
/**
|
|
4
|
-
* `install-deps`(
|
|
4
|
+
* `install-deps`(chrome が要求するシステムライブラリの導入)の実行コマンドを組み立てる。
|
|
5
5
|
*
|
|
6
6
|
* root(コンテナなど)では `sudo` を使わない。sudo バイナリ自体が入っていない環境が普通にあり、
|
|
7
7
|
* root なら昇格は不要なため。非 root では `sudo` を前置する(パスワードを求められうる)。
|
|
@@ -11,18 +11,16 @@ export declare function buildInstallDepsCommand(uid: number | undefined): {
|
|
|
11
11
|
args: string[];
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Playwright MCP が使うブラウザ(
|
|
14
|
+
* Playwright MCP が使うブラウザ(Google Chrome)をインストールする。
|
|
15
15
|
*
|
|
16
16
|
* MCP サーバー本体(`@playwright/mcp`)は `plugin/.mcp.json` が `npx -y ...@latest` で起動するため
|
|
17
|
-
*
|
|
18
|
-
* 落としておく必要がある。未取得だと MCP ツールの初回呼び出しが実行時に失敗する。
|
|
17
|
+
* 事前導入が不要だが、ブラウザ(Chrome)は事前に入れておく必要がある。未取得だと MCP ツールの初回呼び出しが実行時に失敗する。
|
|
19
18
|
*
|
|
20
19
|
* Linux ではさらにシステムライブラリ(`install-deps`)が必要なため、続けて実行する。同コマンドは
|
|
21
20
|
* apt 等を叩くので非 root では `sudo` 経由になり、パスワード入力を求められうる。
|
|
22
21
|
*
|
|
23
22
|
* どちらも冪等(取得済み・導入済みならスキップされる)なので install / update で分岐しない。
|
|
24
23
|
*
|
|
25
|
-
*
|
|
26
|
-
* なったら browsers 引数を増やす。
|
|
24
|
+
* shortcut: chrome のみ。firefox / webkit が要るようになったら browsers 引数を増やす。
|
|
27
25
|
*/
|
|
28
26
|
export declare function installPlaywrightBrowsers(logPrefix: string): Promise<boolean>;
|
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
shutdown,
|
|
66
66
|
waitForAllProcesses,
|
|
67
67
|
writeLastRun
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-D4BPQ3K3.js";
|
|
69
69
|
import {
|
|
70
70
|
UserConfigError,
|
|
71
71
|
assertCloudCompatibleCommand,
|
|
@@ -1119,9 +1119,9 @@ async function loadRunCommand3() {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
var PLAYWRIGHT_CORE_PACKAGE = "playwright-core";
|
|
1121
1121
|
var PLAYWRIGHT_MCP_PACKAGE = "@playwright/mcp";
|
|
1122
|
-
var INSTALL_BROWSER_ARGS = ["-y", `${PLAYWRIGHT_MCP_PACKAGE}@latest`, "install-browser", "
|
|
1122
|
+
var INSTALL_BROWSER_ARGS = ["-y", `${PLAYWRIGHT_MCP_PACKAGE}@latest`, "install-browser", "chrome"];
|
|
1123
1123
|
function buildInstallDepsCommand(uid) {
|
|
1124
|
-
const npxArgs = ["-y", `${PLAYWRIGHT_CORE_PACKAGE}@latest`, "install-deps", "
|
|
1124
|
+
const npxArgs = ["-y", `${PLAYWRIGHT_CORE_PACKAGE}@latest`, "install-deps", "chrome"];
|
|
1125
1125
|
return uid === 0 ? { command: "npx", args: npxArgs } : { command: "sudo", args: ["npx", ...npxArgs] };
|
|
1126
1126
|
}
|
|
1127
1127
|
async function installPlaywrightBrowsers(logPrefix) {
|
package/dist/lib.js
CHANGED