claude-task-worker 0.132.0 → 0.134.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.
|
@@ -2585,6 +2585,7 @@ function createIssuePollingWorker(config) {
|
|
|
2585
2585
|
baseBranch = `cc-epic-${parentNumber}`;
|
|
2586
2586
|
await ensureEpicBranch(baseBranch, defaultBranch);
|
|
2587
2587
|
}
|
|
2588
|
+
const onBranch = cloud && config.cloudOnBranch ? await config.cloudOnBranch(issue, baseBranch) : void 0;
|
|
2588
2589
|
const execution = buildClaudeExecution({
|
|
2589
2590
|
mode,
|
|
2590
2591
|
prompt: `${command} ${issue.number}`,
|
|
@@ -2593,12 +2594,16 @@ function createIssuePollingWorker(config) {
|
|
|
2593
2594
|
// config.json の advisor が false なら advisorModel の指定に関わらず渡さない。
|
|
2594
2595
|
advisorModel: isAdvisorEnabled() ? advisorModel : "",
|
|
2595
2596
|
permissionMode: getPermissionMode(),
|
|
2596
|
-
...cloud ? {
|
|
2597
|
+
...cloud ? {
|
|
2598
|
+
cloud: true,
|
|
2599
|
+
...onBranch ? { onBranch } : { baseRef: baseBranch },
|
|
2600
|
+
remoteEnvId: getRemoteEnvId() ?? ""
|
|
2601
|
+
} : {}
|
|
2597
2602
|
});
|
|
2598
2603
|
let cwd;
|
|
2599
2604
|
if (cloud) {
|
|
2600
2605
|
console.log(
|
|
2601
|
-
`[${config.name}] #${issue.number}: cloud execution, running without worktree on ${baseBranch}`
|
|
2606
|
+
`[${config.name}] #${issue.number}: cloud execution, running without worktree on ${onBranch ?? baseBranch}`
|
|
2602
2607
|
);
|
|
2603
2608
|
} else {
|
|
2604
2609
|
await createWorktreeFromBranch(worktreeId, baseBranch);
|
|
@@ -64,8 +64,9 @@ async function waitForWorkerStartup(paneId, herdr, options) {
|
|
|
64
64
|
for (; ; ) {
|
|
65
65
|
const { foregroundProcesses } = await herdr.paneProcessInfo(paneId);
|
|
66
66
|
if (foregroundProcesses.some(isWorkerProcess)) return "started";
|
|
67
|
-
if (
|
|
68
|
-
|
|
67
|
+
if (Date.now() >= deadline) {
|
|
68
|
+
return foregroundProcesses.length > 0 && !foregroundProcesses.every(isShellProcess) ? "other" : "shell";
|
|
69
|
+
}
|
|
69
70
|
await sleep(pollIntervalMs);
|
|
70
71
|
}
|
|
71
72
|
}
|
package/dist/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
defineWorker,
|
|
27
27
|
deleteRemoteBranch,
|
|
28
28
|
disabledWorkerMessage,
|
|
29
|
+
ensureEpicBranch,
|
|
29
30
|
ensureRenderInterval,
|
|
30
31
|
findOpenPrNumberByHeadRef,
|
|
31
32
|
findPrNumberByHeadRef,
|
|
@@ -60,7 +61,7 @@ import {
|
|
|
60
61
|
shutdown,
|
|
61
62
|
waitForAllProcesses,
|
|
62
63
|
writeLastRun
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-QN2PCVKX.js";
|
|
64
65
|
import {
|
|
65
66
|
UserConfigError,
|
|
66
67
|
assertCloudCompatibleCommand,
|
|
@@ -472,6 +473,13 @@ var createUiDesignWorker = defineWorker({
|
|
|
472
473
|
command: "/claude-task-worker:create-ui-design",
|
|
473
474
|
triggerLabels: ["cc-create-ui-design"],
|
|
474
475
|
excludeLabels: ["cc-ui-design-pr-created", "cc-ui-design-ready", "cc-exec-issue", "cc-pr-created"],
|
|
476
|
+
// セッションの作業ブランチをスキルの固定ブランチに揃え、デザインPRの作り直しを不要にする。
|
|
477
|
+
// 既にある場合(デザインのやり直し)は作り直さず、スキルのフェーズ4と同じく既存先端から始める。
|
|
478
|
+
cloudOnBranch: async (issue, baseBranch) => {
|
|
479
|
+
const branch = designBranchName(issue.number);
|
|
480
|
+
await ensureEpicBranch(branch, baseBranch);
|
|
481
|
+
return branch;
|
|
482
|
+
},
|
|
475
483
|
onCompleted: async (issueNumber, _worktreeId, _output, ctx) => {
|
|
476
484
|
if (await hasLabel("issue", issueNumber, "cc-need-human-check")) {
|
|
477
485
|
console.log(`[create-ui-design] #${issueNumber}: cc-need-human-check present, skip cc-ui-design-pr-created`);
|
|
@@ -1743,7 +1751,7 @@ if (hasProjectFilter()) {
|
|
|
1743
1751
|
let sessions = /* @__PURE__ */ new Map();
|
|
1744
1752
|
let monitorHandle;
|
|
1745
1753
|
const herdr = await import("./herdr-NDLUM6JF.js");
|
|
1746
|
-
const dispatcher = await import("./dispatcher-
|
|
1754
|
+
const dispatcher = await import("./dispatcher-UTBV3L5Z.js");
|
|
1747
1755
|
captureConsole();
|
|
1748
1756
|
const shutdownController = dispatcher.createDispatcherShutdownHandler(
|
|
1749
1757
|
(options) => dispatcher.shutdownDispatcher(sessions, monitorHandle, options)
|
package/dist/lib.js
CHANGED
|
@@ -14,5 +14,6 @@ export interface IssueWorkerConfig {
|
|
|
14
14
|
baseBranch: string;
|
|
15
15
|
startedAt: number;
|
|
16
16
|
}) => Promise<boolean | void>;
|
|
17
|
+
cloudOnBranch?: (issue: Issue, baseBranch: string) => Promise<string>;
|
|
17
18
|
}
|
|
18
19
|
export declare function createIssuePollingWorker(config: IssueWorkerConfig): WorkerDefinition;
|