@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.
package/dist/index.js CHANGED
@@ -3293,6 +3293,12 @@ var FileDatabase = class _FileDatabase {
3293
3293
  getCurrentVersion() {
3294
3294
  return this.currentVersion;
3295
3295
  }
3296
+ /**
3297
+ * Max retained version folders (used by harvest_sync.loaded_versions cap, etc.).
3298
+ */
3299
+ getMaxVersions() {
3300
+ return this.maxVersions;
3301
+ }
3296
3302
  /**
3297
3303
  * Get current metadata
3298
3304
  */
@@ -8149,8 +8155,18 @@ var LOGGER_RUNTIME_KEYS = [
8149
8155
  "progressThrottleMs"
8150
8156
  ];
8151
8157
  var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
8152
- function controlLaneTaskNames() {
8153
- 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;
8154
8170
  }
8155
8171
  function asPositiveInt(value, key, { min = 1 } = {}) {
8156
8172
  const n = Number(value);
@@ -8957,6 +8973,7 @@ async function runTasksLoop(context, options) {
8957
8973
  const queueName = options.queueName ?? "tasks";
8958
8974
  const target = options.target;
8959
8975
  const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
8976
+ const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
8960
8977
  const registry = normalizeRegistry(options.registry);
8961
8978
  const { tasksTable, historyTable } = queueToTableNames(queueName);
8962
8979
  if (!target) throw new Error("runTasksLoop: target is required");
@@ -9027,7 +9044,7 @@ async function runTasksLoop(context, options) {
9027
9044
  target,
9028
9045
  registry,
9029
9046
  10,
9030
- controlLaneTaskNames(),
9047
+ controlLaneNames,
9031
9048
  runnerIdentity
9032
9049
  );
9033
9050
  if (claimedControlTask) {