@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.
@@ -6334,8 +6334,18 @@ var LOGGER_RUNTIME_KEYS = [
6334
6334
  "progressThrottleMs"
6335
6335
  ];
6336
6336
  var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
6337
- function controlLaneTaskNames() {
6338
- return [...CONTROL_LANE_TASK_NAMES];
6337
+ function controlLaneTaskNames(extra) {
6338
+ const names = [...CONTROL_LANE_TASK_NAMES];
6339
+ if (extra == null || extra === "") return names;
6340
+ const more = Array.isArray(extra) ? extra : String(extra).split(",");
6341
+ const seen = new Set(names);
6342
+ for (const raw of more) {
6343
+ const n = String(raw ?? "").trim();
6344
+ if (!n || seen.has(n)) continue;
6345
+ seen.add(n);
6346
+ names.push(n);
6347
+ }
6348
+ return names;
6339
6349
  }
6340
6350
  function asPositiveInt(value, key, { min = 1 } = {}) {
6341
6351
  const n = Number(value);
@@ -6936,6 +6946,7 @@ async function runTasksLoop(context, options) {
6936
6946
  const queueName = options.queueName ?? "tasks";
6937
6947
  const target = options.target;
6938
6948
  const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
6949
+ const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
6939
6950
  const registry = normalizeRegistry(options.registry);
6940
6951
  const { tasksTable, historyTable } = queueToTableNames(queueName);
6941
6952
  if (!target) throw new Error("runTasksLoop: target is required");
@@ -7006,7 +7017,7 @@ async function runTasksLoop(context, options) {
7006
7017
  target,
7007
7018
  registry,
7008
7019
  10,
7009
- controlLaneTaskNames(),
7020
+ controlLaneNames,
7010
7021
  runnerIdentity
7011
7022
  );
7012
7023
  if (claimedControlTask) {