@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/cli-runner.cjs +20 -3
- package/dist/cli-runner.cjs.map +1 -1
- package/dist/cli-runner.js +20 -3
- package/dist/cli-runner.js.map +1 -1
- package/dist/filedatabase.cjs +6 -0
- package/dist/filedatabase.cjs.map +1 -1
- package/dist/filedatabase.js +6 -0
- package/dist/filedatabase.js.map +1 -1
- package/dist/http-client2.cjs +6 -0
- package/dist/http-client2.cjs.map +1 -1
- package/dist/http-client2.js +6 -0
- package/dist/http-client2.js.map +1 -1
- package/dist/index.cjs +20 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/mock-server.cjs +6 -0
- package/dist/mock-server.cjs.map +1 -1
- package/dist/mock-server.js +6 -0
- package/dist/mock-server.js.map +1 -1
- package/dist/tasks.cjs +20 -3
- package/dist/tasks.cjs.map +1 -1
- package/dist/tasks.js +20 -3
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
9047
|
+
controlLaneNames,
|
|
9031
9048
|
runnerIdentity
|
|
9032
9049
|
);
|
|
9033
9050
|
if (claimedControlTask) {
|