@nmakarov/cli-toolkit 0.66.0 → 0.67.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/cli-runner.cjs +14 -3
- package/dist/cli-runner.cjs.map +1 -1
- package/dist/cli-runner.js +14 -3
- package/dist/cli-runner.js.map +1 -1
- package/dist/index.cjs +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/tasks.cjs +14 -3
- package/dist/tasks.cjs.map +1 -1
- package/dist/tasks.js +14 -3
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
package/dist/tasks.cjs
CHANGED
|
@@ -2849,8 +2849,18 @@ var LOGGER_RUNTIME_KEYS = [
|
|
|
2849
2849
|
"progressThrottleMs"
|
|
2850
2850
|
];
|
|
2851
2851
|
var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
|
|
2852
|
-
function controlLaneTaskNames() {
|
|
2853
|
-
|
|
2852
|
+
function controlLaneTaskNames(extra) {
|
|
2853
|
+
const names = [...CONTROL_LANE_TASK_NAMES];
|
|
2854
|
+
if (extra == null || extra === "") return names;
|
|
2855
|
+
const more = Array.isArray(extra) ? extra : String(extra).split(",");
|
|
2856
|
+
const seen = new Set(names);
|
|
2857
|
+
for (const raw of more) {
|
|
2858
|
+
const n = String(raw ?? "").trim();
|
|
2859
|
+
if (!n || seen.has(n)) continue;
|
|
2860
|
+
seen.add(n);
|
|
2861
|
+
names.push(n);
|
|
2862
|
+
}
|
|
2863
|
+
return names;
|
|
2854
2864
|
}
|
|
2855
2865
|
function asPositiveInt(value, key, { min = 1 } = {}) {
|
|
2856
2866
|
const n = Number(value);
|
|
@@ -3657,6 +3667,7 @@ async function runTasksLoop(context, options) {
|
|
|
3657
3667
|
const queueName = options.queueName ?? "tasks";
|
|
3658
3668
|
const target = options.target;
|
|
3659
3669
|
const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
|
|
3670
|
+
const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
|
|
3660
3671
|
const registry = normalizeRegistry(options.registry);
|
|
3661
3672
|
const { tasksTable, historyTable } = queueToTableNames(queueName);
|
|
3662
3673
|
if (!target) throw new Error("runTasksLoop: target is required");
|
|
@@ -3727,7 +3738,7 @@ async function runTasksLoop(context, options) {
|
|
|
3727
3738
|
target,
|
|
3728
3739
|
registry,
|
|
3729
3740
|
10,
|
|
3730
|
-
|
|
3741
|
+
controlLaneNames,
|
|
3731
3742
|
runnerIdentity
|
|
3732
3743
|
);
|
|
3733
3744
|
if (claimedControlTask) {
|