@nmakarov/cli-toolkit 0.65.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.
@@ -5335,6 +5335,12 @@ var FileDatabase = class _FileDatabase {
5335
5335
  getCurrentVersion() {
5336
5336
  return this.currentVersion;
5337
5337
  }
5338
+ /**
5339
+ * Max retained version folders (used by harvest_sync.loaded_versions cap, etc.).
5340
+ */
5341
+ getMaxVersions() {
5342
+ return this.maxVersions;
5343
+ }
5338
5344
  /**
5339
5345
  * Get current metadata
5340
5346
  */
@@ -6328,8 +6334,18 @@ var LOGGER_RUNTIME_KEYS = [
6328
6334
  "progressThrottleMs"
6329
6335
  ];
6330
6336
  var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
6331
- function controlLaneTaskNames() {
6332
- 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;
6333
6349
  }
6334
6350
  function asPositiveInt(value, key, { min = 1 } = {}) {
6335
6351
  const n = Number(value);
@@ -6930,6 +6946,7 @@ async function runTasksLoop(context, options) {
6930
6946
  const queueName = options.queueName ?? "tasks";
6931
6947
  const target = options.target;
6932
6948
  const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
6949
+ const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
6933
6950
  const registry = normalizeRegistry(options.registry);
6934
6951
  const { tasksTable, historyTable } = queueToTableNames(queueName);
6935
6952
  if (!target) throw new Error("runTasksLoop: target is required");
@@ -7000,7 +7017,7 @@ async function runTasksLoop(context, options) {
7000
7017
  target,
7001
7018
  registry,
7002
7019
  10,
7003
- controlLaneTaskNames(),
7020
+ controlLaneNames,
7004
7021
  runnerIdentity
7005
7022
  );
7006
7023
  if (claimedControlTask) {