claude-task-worker 0.74.0 → 0.76.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/index.js +27 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1499,6 +1499,14 @@ async function hasLabel(type, number, label) {
|
|
|
1499
1499
|
return labels.some((l) => l.name === label);
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
|
+
async function hasOpenBlockers(issueNumber) {
|
|
1503
|
+
return withRetry(async () => {
|
|
1504
|
+
const output = await execGh(["issue", "view", String(issueNumber), "--json", "blockedBy"]);
|
|
1505
|
+
const parsed = JSON.parse(output);
|
|
1506
|
+
const nodes = parsed?.blockedBy?.nodes ?? [];
|
|
1507
|
+
return nodes.some((node) => node.state === "OPEN");
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1502
1510
|
async function removeLabel(type, number, label) {
|
|
1503
1511
|
await withRetry(async () => {
|
|
1504
1512
|
try {
|
|
@@ -1921,7 +1929,7 @@ var WORKER_DEFAULTS = {
|
|
|
1921
1929
|
},
|
|
1922
1930
|
"update-issue": {
|
|
1923
1931
|
skill: "/claude-task-worker:update-issue",
|
|
1924
|
-
model: "
|
|
1932
|
+
model: "sonnet",
|
|
1925
1933
|
advisorModel: "",
|
|
1926
1934
|
effort: "high",
|
|
1927
1935
|
pollingIntervalSeconds: 60,
|
|
@@ -1948,7 +1956,7 @@ var WORKER_DEFAULTS = {
|
|
|
1948
1956
|
},
|
|
1949
1957
|
"triage-created-issue": {
|
|
1950
1958
|
skill: "/claude-task-worker:triage-created-issue",
|
|
1951
|
-
model: "
|
|
1959
|
+
model: "sonnet",
|
|
1952
1960
|
advisorModel: "",
|
|
1953
1961
|
effort: "high",
|
|
1954
1962
|
pollingIntervalSeconds: 60,
|
|
@@ -1966,7 +1974,7 @@ var WORKER_DEFAULTS = {
|
|
|
1966
1974
|
},
|
|
1967
1975
|
"resolve-conflict": {
|
|
1968
1976
|
skill: "/claude-task-worker:resolve-pr-conflict",
|
|
1969
|
-
model: "
|
|
1977
|
+
model: "sonnet",
|
|
1970
1978
|
advisorModel: "",
|
|
1971
1979
|
effort: "high",
|
|
1972
1980
|
pollingIntervalSeconds: 60,
|
|
@@ -1975,7 +1983,7 @@ var WORKER_DEFAULTS = {
|
|
|
1975
1983
|
},
|
|
1976
1984
|
"check-dependabot": {
|
|
1977
1985
|
skill: "/claude-task-worker:check-dependabot",
|
|
1978
|
-
model: "
|
|
1986
|
+
model: "sonnet",
|
|
1979
1987
|
advisorModel: "",
|
|
1980
1988
|
effort: "high",
|
|
1981
1989
|
pollingIntervalSeconds: 3600,
|
|
@@ -1984,9 +1992,9 @@ var WORKER_DEFAULTS = {
|
|
|
1984
1992
|
},
|
|
1985
1993
|
"epic-issue": {
|
|
1986
1994
|
skill: "/claude-task-worker:create-epic-pr",
|
|
1987
|
-
model: "
|
|
1995
|
+
model: "sonnet",
|
|
1988
1996
|
advisorModel: "",
|
|
1989
|
-
effort: "
|
|
1997
|
+
effort: "medium",
|
|
1990
1998
|
pollingIntervalSeconds: 300,
|
|
1991
1999
|
cooldownSeconds: 0,
|
|
1992
2000
|
maxConcurrentTasks: 1
|
|
@@ -2002,9 +2010,9 @@ var WORKER_DEFAULTS = {
|
|
|
2002
2010
|
},
|
|
2003
2011
|
"apply-ui-design": {
|
|
2004
2012
|
skill: "/claude-task-worker:apply-ui-design",
|
|
2005
|
-
model: "
|
|
2013
|
+
model: "sonnet",
|
|
2006
2014
|
advisorModel: "",
|
|
2007
|
-
effort: "
|
|
2015
|
+
effort: "medium",
|
|
2008
2016
|
pollingIntervalSeconds: 300,
|
|
2009
2017
|
cooldownSeconds: 0,
|
|
2010
2018
|
maxConcurrentTasks: 1
|
|
@@ -3114,6 +3122,16 @@ function createIssuePollingWorker(config) {
|
|
|
3114
3122
|
for (const issue of candidates) {
|
|
3115
3123
|
if (isRunning(issue.number)) continue;
|
|
3116
3124
|
if (isWorkerAtCapacity(config.name)) break;
|
|
3125
|
+
let blocked = false;
|
|
3126
|
+
try {
|
|
3127
|
+
blocked = await hasOpenBlockers(issue.number);
|
|
3128
|
+
} catch (err) {
|
|
3129
|
+
console.error(`[${config.name}] hasOpenBlockers failed for #${issue.number}: ${err}`);
|
|
3130
|
+
}
|
|
3131
|
+
if (blocked) {
|
|
3132
|
+
console.log(`[${config.name}] #${issue.number}: skipped (blocked by an open issue)`);
|
|
3133
|
+
continue;
|
|
3134
|
+
}
|
|
3117
3135
|
if (config.preflight) {
|
|
3118
3136
|
const action = await config.preflight(issue);
|
|
3119
3137
|
if (action === "skip") continue;
|
|
@@ -4240,7 +4258,7 @@ Example:
|
|
|
4240
4258
|
claude-task-worker all --label priority-high --label needs-design
|
|
4241
4259
|
claude-task-worker yolo --epic 100 --epic 200 --label priority-high
|
|
4242
4260
|
claude-task-worker all --project all
|
|
4243
|
-
claude-task-worker all --project
|
|
4261
|
+
claude-task-worker all --project web
|
|
4244
4262
|
claude-task-worker exec-issue --project my-app --epic 100`);
|
|
4245
4263
|
}
|
|
4246
4264
|
var workerType = process.argv[2];
|