@brainervirus/workit-cli 8.39.1 → 8.39.2
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 +9 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9317,7 +9317,7 @@ var package_default;
|
|
|
9317
9317
|
var init_package = __esm(() => {
|
|
9318
9318
|
package_default = {
|
|
9319
9319
|
name: "@brainervirus/workit-cli",
|
|
9320
|
-
version: "8.39.
|
|
9320
|
+
version: "8.39.2",
|
|
9321
9321
|
private: false,
|
|
9322
9322
|
description: "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
|
|
9323
9323
|
keywords: [
|
|
@@ -9355,13 +9355,13 @@ var init_package = __esm(() => {
|
|
|
9355
9355
|
},
|
|
9356
9356
|
dependencies: {
|
|
9357
9357
|
"@babel/parser": "7.29.9",
|
|
9358
|
-
"@brainervirus/workit-cursor": "^8.39.
|
|
9358
|
+
"@brainervirus/workit-cursor": "^8.39.2",
|
|
9359
9359
|
"@inkjs/ui": "2.0.0",
|
|
9360
9360
|
ink: "7.1.1",
|
|
9361
9361
|
react: "19.2.8"
|
|
9362
9362
|
},
|
|
9363
9363
|
devDependencies: {
|
|
9364
|
-
"@brainervirus/workit-core": "^8.39.
|
|
9364
|
+
"@brainervirus/workit-core": "^8.39.2"
|
|
9365
9365
|
},
|
|
9366
9366
|
engines: {
|
|
9367
9367
|
node: ">=24"
|
|
@@ -78219,11 +78219,12 @@ async function acquireLease(options) {
|
|
|
78219
78219
|
position: ahead + 1
|
|
78220
78220
|
};
|
|
78221
78221
|
if (!queued) {
|
|
78222
|
-
writeTicket(ticket, ticketRecord);
|
|
78223
|
-
queued = true;
|
|
78224
78222
|
process.on("exit", leave);
|
|
78225
78223
|
process.on("SIGINT", onSignal);
|
|
78226
78224
|
process.on("SIGTERM", onSignal);
|
|
78225
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
78226
|
+
writeTicket(ticket, ticketRecord);
|
|
78227
|
+
queued = true;
|
|
78227
78228
|
} else if (!fs24.existsSync(ticket)) {
|
|
78228
78229
|
writeTicket(ticket, ticketRecord);
|
|
78229
78230
|
}
|
|
@@ -78232,7 +78233,8 @@ async function acquireLease(options) {
|
|
|
78232
78233
|
position: ahead + 1,
|
|
78233
78234
|
ahead,
|
|
78234
78235
|
holders,
|
|
78235
|
-
waitedMs: waited
|
|
78236
|
+
waitedMs: waited,
|
|
78237
|
+
first: nextStatus === 0
|
|
78236
78238
|
});
|
|
78237
78239
|
nextStatus = waited + (options.statusEveryMs ?? 30000);
|
|
78238
78240
|
}
|
|
@@ -78675,7 +78677,7 @@ async function prepareHeavy(io, settings, label, runCwd, timeoutMs) {
|
|
|
78675
78677
|
onStatus: (status) => {
|
|
78676
78678
|
const slots = `${settings.slots} slot${settings.slots === 1 ? "" : "s"}`;
|
|
78677
78679
|
const holders = status.holders.map((holder) => describeHolder(holder)).join("; ");
|
|
78678
|
-
io.stderr(status.
|
|
78680
|
+
io.stderr(status.first ? `workit: waiting for the heavy-check lease (${slots}): held by ${holders || "nobody; waiters ahead"}; queued at position ${status.position}, waiting up to ${formatWait(settings.waitMs)} (--wait <dur> sets it)
|
|
78679
78681
|
` : `workit: still queued for the heavy-check lease: position ${status.position}, ${formatWait(status.waitedMs)} of ${formatWait(settings.waitMs)} waited; held by ${holders || "nobody; waiters ahead"}
|
|
78680
78682
|
`);
|
|
78681
78683
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainervirus/workit-cli",
|
|
3
|
-
"version": "8.39.
|
|
3
|
+
"version": "8.39.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Workit CLI — setup wizard, doctor, and task control for agentic coding workflows",
|
|
6
6
|
"keywords": [
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/parser": "7.29.9",
|
|
41
|
-
"@brainervirus/workit-cursor": "^8.39.
|
|
41
|
+
"@brainervirus/workit-cursor": "^8.39.2",
|
|
42
42
|
"@inkjs/ui": "2.0.0",
|
|
43
43
|
"ink": "7.1.1",
|
|
44
44
|
"react": "19.2.8"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@brainervirus/workit-core": "^8.39.
|
|
47
|
+
"@brainervirus/workit-core": "^8.39.2"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=24"
|