steroids-cli 0.9.41 → 0.9.42
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wakeup-checks.d.ts","sourceRoot":"","sources":["../../src/runners/wakeup-checks.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"wakeup-checks.d.ts","sourceRoot":"","sources":["../../src/runners/wakeup-checks.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAkBjF;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAiBtE;AAED,wBAAgB,kCAAkC,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAmD/E"}
|
|
@@ -9,6 +9,8 @@ exports.hasActiveParallelSessionForProject = hasActiveParallelSessionForProject;
|
|
|
9
9
|
const node_fs_1 = require("node:fs");
|
|
10
10
|
const node_path_1 = require("node:path");
|
|
11
11
|
const global_db_js_1 = require("./global-db.js");
|
|
12
|
+
const connection_js_1 = require("../database/connection.js");
|
|
13
|
+
const task_selector_js_1 = require("../orchestrator/task-selector.js");
|
|
12
14
|
/**
|
|
13
15
|
* Check if a project has pending work
|
|
14
16
|
*/
|
|
@@ -18,15 +20,15 @@ async function projectHasPendingWork(projectPath) {
|
|
|
18
20
|
return false;
|
|
19
21
|
}
|
|
20
22
|
try {
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
const db =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
// Mirror orchestrator selection logic so wakeup only starts runners
|
|
24
|
+
// when there is actually an eligible task to execute.
|
|
25
|
+
const { db, close } = (0, connection_js_1.openDatabase)(projectPath);
|
|
26
|
+
try {
|
|
27
|
+
return (0, task_selector_js_1.selectNextTask)(db) !== null;
|
|
28
|
+
}
|
|
29
|
+
finally {
|
|
30
|
+
close();
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
33
|
catch {
|
|
32
34
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wakeup-checks.js","sourceRoot":"","sources":["../../src/runners/wakeup-checks.ts"],"names":[],"mappings":";AAAA;;GAEG;;
|
|
1
|
+
{"version":3,"file":"wakeup-checks.js","sourceRoot":"","sources":["../../src/runners/wakeup-checks.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAWH,sDAkBC;AAMD,8DAiBC;AAED,gFAmDC;AAvGD,qCAAqC;AACrC,yCAAiC;AACjC,iDAAoD;AACpD,6DAAyD;AACzD,uEAAkE;AAElE;;GAEG;AACI,KAAK,UAAU,qBAAqB,CAAC,WAAmB;IAC7D,MAAM,MAAM,GAAG,IAAA,gBAAI,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;IAC7D,IAAI,CAAC,IAAA,oBAAU,EAAC,MAAM,CAAC,EAAE,CAAC;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC;QACH,oEAAoE;QACpE,sDAAsD;QACtD,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAA,4BAAY,EAAC,WAAW,CAAC,CAAC;QAChD,IAAI,CAAC;YACH,OAAO,IAAA,iCAAc,EAAC,EAAE,CAAC,KAAK,IAAI,CAAC;QACrC,CAAC;gBAAS,CAAC;YACT,KAAK,EAAE,CAAC;QACV,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,SAAgB,yBAAyB,CAAC,WAAmB;IAC3D,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAA,iCAAkB,GAAE,CAAC;IAC3C,IAAI,CAAC;QACH,MAAM,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