@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/index.js CHANGED
@@ -8155,8 +8155,18 @@ var LOGGER_RUNTIME_KEYS = [
8155
8155
  "progressThrottleMs"
8156
8156
  ];
8157
8157
  var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
8158
- function controlLaneTaskNames() {
8159
- return [...CONTROL_LANE_TASK_NAMES];
8158
+ function controlLaneTaskNames(extra) {
8159
+ const names = [...CONTROL_LANE_TASK_NAMES];
8160
+ if (extra == null || extra === "") return names;
8161
+ const more = Array.isArray(extra) ? extra : String(extra).split(",");
8162
+ const seen = new Set(names);
8163
+ for (const raw of more) {
8164
+ const n = String(raw ?? "").trim();
8165
+ if (!n || seen.has(n)) continue;
8166
+ seen.add(n);
8167
+ names.push(n);
8168
+ }
8169
+ return names;
8160
8170
  }
8161
8171
  function asPositiveInt(value, key, { min = 1 } = {}) {
8162
8172
  const n = Number(value);
@@ -8963,6 +8973,7 @@ async function runTasksLoop(context, options) {
8963
8973
  const queueName = options.queueName ?? "tasks";
8964
8974
  const target = options.target;
8965
8975
  const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
8976
+ const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
8966
8977
  const registry = normalizeRegistry(options.registry);
8967
8978
  const { tasksTable, historyTable } = queueToTableNames(queueName);
8968
8979
  if (!target) throw new Error("runTasksLoop: target is required");
@@ -9033,7 +9044,7 @@ async function runTasksLoop(context, options) {
9033
9044
  target,
9034
9045
  registry,
9035
9046
  10,
9036
- controlLaneTaskNames(),
9047
+ controlLaneNames,
9037
9048
  runnerIdentity
9038
9049
  );
9039
9050
  if (claimedControlTask) {