@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.
@@ -5319,6 +5319,12 @@ var FileDatabase = class _FileDatabase {
5319
5319
  getCurrentVersion() {
5320
5320
  return this.currentVersion;
5321
5321
  }
5322
+ /**
5323
+ * Max retained version folders (used by harvest_sync.loaded_versions cap, etc.).
5324
+ */
5325
+ getMaxVersions() {
5326
+ return this.maxVersions;
5327
+ }
5322
5328
  /**
5323
5329
  * Get current metadata
5324
5330
  */
@@ -6312,8 +6318,18 @@ var LOGGER_RUNTIME_KEYS = [
6312
6318
  "progressThrottleMs"
6313
6319
  ];
6314
6320
  var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
6315
- function controlLaneTaskNames() {
6316
- return [...CONTROL_LANE_TASK_NAMES];
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;
6317
6333
  }
6318
6334
  function asPositiveInt(value, key, { min = 1 } = {}) {
6319
6335
  const n = Number(value);
@@ -6914,6 +6930,7 @@ async function runTasksLoop(context, options) {
6914
6930
  const queueName = options.queueName ?? "tasks";
6915
6931
  const target = options.target;
6916
6932
  const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
6933
+ const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
6917
6934
  const registry = normalizeRegistry(options.registry);
6918
6935
  const { tasksTable, historyTable } = queueToTableNames(queueName);
6919
6936
  if (!target) throw new Error("runTasksLoop: target is required");
@@ -6984,7 +7001,7 @@ async function runTasksLoop(context, options) {
6984
7001
  target,
6985
7002
  registry,
6986
7003
  10,
6987
- controlLaneTaskNames(),
7004
+ controlLaneNames,
6988
7005
  runnerIdentity
6989
7006
  );
6990
7007
  if (claimedControlTask) {