@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/cli-runner.cjs +14 -3
- package/dist/cli-runner.cjs.map +1 -1
- package/dist/cli-runner.js +14 -3
- package/dist/cli-runner.js.map +1 -1
- package/dist/index.cjs +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/tasks.cjs +14 -3
- package/dist/tasks.cjs.map +1 -1
- package/dist/tasks.js +14 -3
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8320,8 +8320,18 @@ var LOGGER_RUNTIME_KEYS = [
|
|
|
8320
8320
|
"progressThrottleMs"
|
|
8321
8321
|
];
|
|
8322
8322
|
var CONTROL_LANE_TASK_NAMES = ["stopRunner", "stop", "setRuntimeParam", "setRunnerParam"];
|
|
8323
|
-
function controlLaneTaskNames() {
|
|
8324
|
-
|
|
8323
|
+
function controlLaneTaskNames(extra) {
|
|
8324
|
+
const names = [...CONTROL_LANE_TASK_NAMES];
|
|
8325
|
+
if (extra == null || extra === "") return names;
|
|
8326
|
+
const more = Array.isArray(extra) ? extra : String(extra).split(",");
|
|
8327
|
+
const seen = new Set(names);
|
|
8328
|
+
for (const raw of more) {
|
|
8329
|
+
const n = String(raw ?? "").trim();
|
|
8330
|
+
if (!n || seen.has(n)) continue;
|
|
8331
|
+
seen.add(n);
|
|
8332
|
+
names.push(n);
|
|
8333
|
+
}
|
|
8334
|
+
return names;
|
|
8325
8335
|
}
|
|
8326
8336
|
function asPositiveInt(value, key, { min = 1 } = {}) {
|
|
8327
8337
|
const n = Number(value);
|
|
@@ -9128,6 +9138,7 @@ async function runTasksLoop(context, options) {
|
|
|
9128
9138
|
const queueName = options.queueName ?? "tasks";
|
|
9129
9139
|
const target = options.target;
|
|
9130
9140
|
const allowedTasks = normalizeAllowedTasks(options.allowedTasks);
|
|
9141
|
+
const controlLaneNames = controlLaneTaskNames(options.controlLaneTasks);
|
|
9131
9142
|
const registry = normalizeRegistry(options.registry);
|
|
9132
9143
|
const { tasksTable, historyTable } = queueToTableNames(queueName);
|
|
9133
9144
|
if (!target) throw new Error("runTasksLoop: target is required");
|
|
@@ -9198,7 +9209,7 @@ async function runTasksLoop(context, options) {
|
|
|
9198
9209
|
target,
|
|
9199
9210
|
registry,
|
|
9200
9211
|
10,
|
|
9201
|
-
|
|
9212
|
+
controlLaneNames,
|
|
9202
9213
|
runnerIdentity
|
|
9203
9214
|
);
|
|
9204
9215
|
if (claimedControlTask) {
|