claude-task-worker 0.101.0 → 0.102.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 +2 -2
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ CLI が GitHub ラベルを検知してタスクを起動し、プラグイン
|
|
|
61
61
|
| [Pen CLI](https://docs.pen.dev/for-developers/pen-cli) | `.pen` の編集・参照。UIデザイン先行ワークフロー使用時のみ(要ログイン) |
|
|
62
62
|
| [Playwright](https://playwright.dev/) のブラウザ | Playwright MCP でのブラウザ確認 |
|
|
63
63
|
| [DESIGN.md CLI](https://github.com/google-labs-code/design.md) | `DESIGN.md` の lint。`update-design-md` 使用時のみ(未導入でも動く) |
|
|
64
|
-
| [herdr](https://herdr.dev) | `--project` / `mode: "herdr"` 使用時のみ(`--cloud`
|
|
64
|
+
| [herdr](https://herdr.dev) | `--project` / `mode: "herdr"` 使用時のみ(`--cloud` は herdr に依存しない) |
|
|
65
65
|
| [GitHub MCP](https://github.com/github/github-mcp-server) | GitHub アクセスの高速化・クラウド実行時のプロキシ制限回避(任意。Claude 側のコネクタで有効化) |
|
|
66
66
|
|
|
67
67
|
CLI 本体に npm の実行時依存はない(Node.js 標準モジュールのみで動作する)。
|
|
@@ -205,7 +205,7 @@ npx claude-task-worker cloud-setup
|
|
|
205
205
|
- 完了は `cc-cloud-done` ラベルで検知する。4時間で応答がなければ打ち切り、`cc-need-human-check` を付けて失敗通知する
|
|
206
206
|
- `--project` と併用した場合、`--cloud` は各プロジェクトへそのまま転送される
|
|
207
207
|
- `--cloud` と併用できないコマンド: `init` / `install` / `update` / `usage` / `version`
|
|
208
|
-
-
|
|
208
|
+
- `--cloud` は `mode`(`default` / `herdr`)に依存しない。クラウドセッションの作成は `script` コマンドの疑似 pty で完結し、herdr のペインを使わないため、どちらの `mode` でも同じ経路を通る
|
|
209
209
|
|
|
210
210
|
詳細は [`docs/prd-cloud-worker-execution.md`](./docs/prd-cloud-worker-execution.md) を参照。
|
|
211
211
|
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var __export = (target, all) => {
|
|
|
12
12
|
// src/table.ts
|
|
13
13
|
var table_exports = {};
|
|
14
14
|
__export(table_exports, {
|
|
15
|
+
CLOUD_WORKTREE_LABEL: () => CLOUD_WORKTREE_LABEL,
|
|
15
16
|
CONTROL_CHARS: () => CONTROL_CHARS,
|
|
16
17
|
LOG_DISPLAY_LIMIT: () => LOG_DISPLAY_LIMIT,
|
|
17
18
|
TASK_DISPLAY_LIMIT: () => TASK_DISPLAY_LIMIT,
|
|
@@ -29,7 +30,7 @@ __export(table_exports, {
|
|
|
29
30
|
import { format } from "node:util";
|
|
30
31
|
function getDisplayWidth(str) {
|
|
31
32
|
let width = 0;
|
|
32
|
-
for (const char of str) {
|
|
33
|
+
for (const char of str.replace(CONTROL_CHARS, "")) {
|
|
33
34
|
const code = char.codePointAt(0);
|
|
34
35
|
if (code >= 4352 && code <= 4447 || code >= 11904 && code <= 12350 || code >= 12352 && code <= 13247 || code >= 13312 && code <= 19903 || code >= 19968 && code <= 42191 || code >= 44032 && code <= 55215 || code >= 63744 && code <= 64255 || code >= 65072 && code <= 65135 || code >= 65281 && code <= 65376 || code >= 65504 && code <= 65510 || code >= 131072 && code <= 196605 || code >= 196608 && code <= 262141) {
|
|
35
36
|
width += 2;
|
|
@@ -181,10 +182,11 @@ function buildLogTableLines(entries) {
|
|
|
181
182
|
});
|
|
182
183
|
return renderBoxTable(["Time", "#", "Stream", "Log"], [rows]);
|
|
183
184
|
}
|
|
184
|
-
var TASK_DISPLAY_LIMIT, LOG_DISPLAY_LIMIT, logLines, rawLog, rawClear, consoleCaptured, CONTROL_CHARS;
|
|
185
|
+
var CLOUD_WORKTREE_LABEL, TASK_DISPLAY_LIMIT, LOG_DISPLAY_LIMIT, logLines, rawLog, rawClear, consoleCaptured, CONTROL_CHARS;
|
|
185
186
|
var init_table = __esm({
|
|
186
187
|
"src/table.ts"() {
|
|
187
188
|
"use strict";
|
|
189
|
+
CLOUD_WORKTREE_LABEL = "\x1B[36m\u2601 running in cloud\x1B[0m";
|
|
188
190
|
TASK_DISPLAY_LIMIT = 20;
|
|
189
191
|
LOG_DISPLAY_LIMIT = 20;
|
|
190
192
|
logLines = [];
|
|
@@ -2972,7 +2974,9 @@ function run(command, args, id, title, workerName, path2, onComplete, cwd, env,
|
|
|
2972
2974
|
title,
|
|
2973
2975
|
status: "running",
|
|
2974
2976
|
workerName,
|
|
2975
|
-
path
|
|
2977
|
+
// クラウド実行は worktree を持たない(ワーカーが path に undefined を渡す)ため、
|
|
2978
|
+
// 空欄ではなく実行場所が分かる表示を入れる。
|
|
2979
|
+
path: cloud ? CLOUD_WORKTREE_LABEL : path2,
|
|
2976
2980
|
startedAt: /* @__PURE__ */ new Date()
|
|
2977
2981
|
});
|
|
2978
2982
|
ensureRenderInterval();
|