@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/cli-runner.js
CHANGED
|
@@ -6318,8 +6318,18 @@ var LOGGER_RUNTIME_KEYS = [
|
|
|
6318
6318
|
"progressThrottleMs"
|
|
6319
6319
|
];
|
|
6320
6320
|
var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
|
|
6321
|
-
function controlLaneTaskNames() {
|
|
6322
|
-
|
|
6321
|
+
function controlLaneTaskNames(extra) {
|
|
6322
|
+
const names = [...CONTROL_LANE_TASK_NAMES];
|
|
6323
|
+
if (extra == null || extra === "") return names;
|
|
6324
|
+
const more = Array.isArray(extra) ? extra : String(extra).split(",");
|
|
6325
|
+
const seen = new Set(names);
|
|
6326
|
+
for (const raw of more) {
|
|
6327
|
+
const n = String(raw ?? "").trim();
|
|
6328
|
+
if (!n || seen.has(n)) continue;
|
|
6329
|
+
seen.add(n);
|
|
6330
|
+
names.push(n);
|
|
6331
|
+
}
|
|
6332
|
+
return names;
|
|
6323
6333
|
}
|
|
6324
6334
|
function asPositiveInt(value, key, { min = 1 } = {}) {
|
|
6325
6335
|
const n = Number(value);
|
|
@@ -6920,6 +6930,7 @@ async function runTasksLoop(context, options) {
|
|
|
6920
6930
|
const queueName = options.queueName ?? "tasks";
|
|
6921
6931
|
const target = options.target;
|
|
6922
6932
|
const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
|
|
6933
|
+
const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
|
|
6923
6934
|
const registry = normalizeRegistry(options.registry);
|
|
6924
6935
|
const { tasksTable, historyTable } = queueToTableNames(queueName);
|
|
6925
6936
|
if (!target) throw new Error("runTasksLoop: target is required");
|
|
@@ -6990,7 +7001,7 @@ async function runTasksLoop(context, options) {
|
|
|
6990
7001
|
target,
|
|
6991
7002
|
registry,
|
|
6992
7003
|
10,
|
|
6993
|
-
|
|
7004
|
+
controlLaneNames,
|
|
6994
7005
|
runnerIdentity
|
|
6995
7006
|
);
|
|
6996
7007
|
if (claimedControlTask) {
|