@taskless-app/swarm 0.6.85 → 0.6.87
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.js +18 -4
- package/dist/overmind.js +28 -6
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -4204,7 +4204,7 @@ var init_package = __esm({
|
|
|
4204
4204
|
"package.json"() {
|
|
4205
4205
|
package_default = {
|
|
4206
4206
|
name: "@taskless-app/swarm",
|
|
4207
|
-
version: "0.6.
|
|
4207
|
+
version: "0.6.87",
|
|
4208
4208
|
type: "module",
|
|
4209
4209
|
description: "Local control plane for a fleet of AI coding agents (drones), coordinating through Taskless. The overmind runs the swarm.",
|
|
4210
4210
|
keywords: [
|
|
@@ -4256,7 +4256,7 @@ var init_package = __esm({
|
|
|
4256
4256
|
undici: "^7.30.1",
|
|
4257
4257
|
zod: "3.25.76"
|
|
4258
4258
|
},
|
|
4259
|
-
gitHead: "
|
|
4259
|
+
gitHead: "68dc6ddb7ee57e70257f8164aa55db3615dc16be"
|
|
4260
4260
|
};
|
|
4261
4261
|
}
|
|
4262
4262
|
});
|
|
@@ -13662,10 +13662,24 @@ function droneTestEnv(droneCap, base3 = process.env, host = hostForkSpec()) {
|
|
|
13662
13662
|
const envCap = Number(base3.SWARM_MAX_IN_FLIGHT);
|
|
13663
13663
|
const cap = droneCap != null && droneCap > 0 ? droneCap : Number.isFinite(envCap) && envCap > 0 ? envCap : 3;
|
|
13664
13664
|
const share = String(testForksPerDrone(host.cores, host.totalMemGb, cap));
|
|
13665
|
-
const
|
|
13665
|
+
const positiveInt = (v) => /^[1-9]\d*$/.test(v ?? "") ? v : void 0;
|
|
13666
|
+
const operatorForks = positiveInt(base3.TEST_MAX_FORKS);
|
|
13667
|
+
const workers = operatorForks ?? share;
|
|
13668
|
+
const legacyMax = positiveInt(base3.VITEST_MAX_WORKERS) ?? workers;
|
|
13669
|
+
const legacyPair = (max, min) => {
|
|
13670
|
+
const out = {};
|
|
13671
|
+
if (!base3[min]) out[min] = "1";
|
|
13672
|
+
if (!base3[max]) {
|
|
13673
|
+
const opMin = positiveInt(base3[min]);
|
|
13674
|
+
out[max] = opMin && Number(opMin) > Number(legacyMax) ? opMin : legacyMax;
|
|
13675
|
+
}
|
|
13676
|
+
return out;
|
|
13677
|
+
};
|
|
13666
13678
|
return {
|
|
13667
13679
|
...base3.TEST_MAX_FORKS ? {} : { TEST_MAX_FORKS: share },
|
|
13668
|
-
...base3.VITEST_MAX_WORKERS ? {} : { VITEST_MAX_WORKERS:
|
|
13680
|
+
...base3.VITEST_MAX_WORKERS ? {} : { VITEST_MAX_WORKERS: workers },
|
|
13681
|
+
...legacyPair("VITEST_MAX_FORKS", "VITEST_MIN_FORKS"),
|
|
13682
|
+
...legacyPair("VITEST_MAX_THREADS", "VITEST_MIN_THREADS")
|
|
13669
13683
|
};
|
|
13670
13684
|
}
|
|
13671
13685
|
|
package/dist/overmind.js
CHANGED
|
@@ -1301,7 +1301,10 @@ var init_hostResources = __esm({
|
|
|
1301
1301
|
});
|
|
1302
1302
|
|
|
1303
1303
|
// ../swarm-core/src/hostPool.ts
|
|
1304
|
-
|
|
1304
|
+
function isFileHoldEvent(text) {
|
|
1305
|
+
return typeof text === "string" && text.endsWith(FILE_HOLD_EVENT_SUFFIX);
|
|
1306
|
+
}
|
|
1307
|
+
var HOST_REJECTION_TEXT, HOST_REPO_BLOCK_TEXT, FILE_HOLD_EVENT_SUFFIX;
|
|
1305
1308
|
var init_hostPool = __esm({
|
|
1306
1309
|
"../swarm-core/src/hostPool.ts"() {
|
|
1307
1310
|
"use strict";
|
|
@@ -1323,6 +1326,7 @@ var init_hostPool = __esm({
|
|
|
1323
1326
|
no_clone: "\u043A\u043B\u043E\u043D\u0430 \u043D\u0435\u0442",
|
|
1324
1327
|
repo_off: "\u0440\u0430\u0431\u043E\u0442\u0430 \u043F\u043E \u0440\u0435\u043F\u043E\u0437\u0438\u0442\u043E\u0440\u0438\u044E \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0430"
|
|
1325
1328
|
};
|
|
1329
|
+
FILE_HOLD_EVENT_SUFFIX = " \u2014 \u0437\u0430\u0434\u0430\u0447\u0430 \u043E\u0441\u0442\u0430\u0451\u0442\u0441\u044F \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u0438 (TASWM-348)";
|
|
1326
1330
|
}
|
|
1327
1331
|
});
|
|
1328
1332
|
|
|
@@ -12136,10 +12140,24 @@ function droneTestEnv(droneCap, base3 = process.env, host = hostForkSpec()) {
|
|
|
12136
12140
|
const envCap = Number(base3.SWARM_MAX_IN_FLIGHT);
|
|
12137
12141
|
const cap = droneCap != null && droneCap > 0 ? droneCap : Number.isFinite(envCap) && envCap > 0 ? envCap : 3;
|
|
12138
12142
|
const share = String(testForksPerDrone(host.cores, host.totalMemGb, cap));
|
|
12139
|
-
const
|
|
12143
|
+
const positiveInt = (v) => /^[1-9]\d*$/.test(v ?? "") ? v : void 0;
|
|
12144
|
+
const operatorForks = positiveInt(base3.TEST_MAX_FORKS);
|
|
12145
|
+
const workers = operatorForks ?? share;
|
|
12146
|
+
const legacyMax = positiveInt(base3.VITEST_MAX_WORKERS) ?? workers;
|
|
12147
|
+
const legacyPair = (max, min) => {
|
|
12148
|
+
const out = {};
|
|
12149
|
+
if (!base3[min]) out[min] = "1";
|
|
12150
|
+
if (!base3[max]) {
|
|
12151
|
+
const opMin = positiveInt(base3[min]);
|
|
12152
|
+
out[max] = opMin && Number(opMin) > Number(legacyMax) ? opMin : legacyMax;
|
|
12153
|
+
}
|
|
12154
|
+
return out;
|
|
12155
|
+
};
|
|
12140
12156
|
return {
|
|
12141
12157
|
...base3.TEST_MAX_FORKS ? {} : { TEST_MAX_FORKS: share },
|
|
12142
|
-
...base3.VITEST_MAX_WORKERS ? {} : { VITEST_MAX_WORKERS:
|
|
12158
|
+
...base3.VITEST_MAX_WORKERS ? {} : { VITEST_MAX_WORKERS: workers },
|
|
12159
|
+
...legacyPair("VITEST_MAX_FORKS", "VITEST_MIN_FORKS"),
|
|
12160
|
+
...legacyPair("VITEST_MAX_THREADS", "VITEST_MIN_THREADS")
|
|
12143
12161
|
};
|
|
12144
12162
|
}
|
|
12145
12163
|
|
|
@@ -12952,6 +12970,7 @@ function createModelLimitsPoller(options) {
|
|
|
12952
12970
|
|
|
12953
12971
|
// src/overmind.ts
|
|
12954
12972
|
init_src();
|
|
12973
|
+
init_src();
|
|
12955
12974
|
|
|
12956
12975
|
// src/orchestrator.ts
|
|
12957
12976
|
init_src();
|
|
@@ -13967,7 +13986,7 @@ function parkReasonUnretriable(reason) {
|
|
|
13967
13986
|
// package.json
|
|
13968
13987
|
var package_default = {
|
|
13969
13988
|
name: "@taskless-app/swarm",
|
|
13970
|
-
version: "0.6.
|
|
13989
|
+
version: "0.6.87",
|
|
13971
13990
|
type: "module",
|
|
13972
13991
|
description: "Local control plane for a fleet of AI coding agents (drones), coordinating through Taskless. The overmind runs the swarm.",
|
|
13973
13992
|
keywords: [
|
|
@@ -14019,7 +14038,7 @@ var package_default = {
|
|
|
14019
14038
|
undici: "^7.30.1",
|
|
14020
14039
|
zod: "3.25.76"
|
|
14021
14040
|
},
|
|
14022
|
-
gitHead: "
|
|
14041
|
+
gitHead: "68dc6ddb7ee57e70257f8164aa55db3615dc16be"
|
|
14023
14042
|
};
|
|
14024
14043
|
|
|
14025
14044
|
// src/version.ts
|
|
@@ -22778,9 +22797,10 @@ async function spawnQueuedRun(deps, run2) {
|
|
|
22778
22797
|
}
|
|
22779
22798
|
if (e instanceof FileOverlapError) {
|
|
22780
22799
|
const logged = deps.overlapLogged ??= /* @__PURE__ */ new Map();
|
|
22800
|
+
const holdText = `${e.message}${FILE_HOLD_EVENT_SUFFIX}`;
|
|
22781
22801
|
if (logged.get(run2.id) !== e.message) {
|
|
22782
22802
|
logged.set(run2.id, e.message);
|
|
22783
|
-
deps.db.addEvent(run2.id, "step",
|
|
22803
|
+
deps.db.addEvent(run2.id, "step", holdText);
|
|
22784
22804
|
const blocker = deps.db.getRun(e.blockedByRunId);
|
|
22785
22805
|
if (blocker)
|
|
22786
22806
|
deps.db.addEvent(
|
|
@@ -22789,6 +22809,8 @@ async function spawnQueuedRun(deps, run2) {
|
|
|
22789
22809
|
`${run2.task_slug} (#${run2.id}) \u0441\u0442\u043E\u0438\u0442 \u0432 \u043E\u0447\u0435\u0440\u0435\u0434\u0438 \u0438\u0437-\u0437\u0430 \u044D\u0442\u043E\u0439 \u0440\u0430\u0431\u043E\u0442\u044B \u2014 ${e.message} (TASWM-506)`
|
|
22790
22810
|
);
|
|
22791
22811
|
narrate(deps, `${droneLabel(run2)} \u2014 ${e.message}. \u041D\u0435 \u0441\u043F\u0430\u0432\u043D\u044E \u043F\u0430\u0440\u0430\u043B\u043B\u0435\u043B\u044C\u043D\u043E.`);
|
|
22812
|
+
} else if (!isFileHoldEvent(deps.db.events(run2.id).at(-1)?.text)) {
|
|
22813
|
+
deps.db.addEvent(run2.id, "step", holdText);
|
|
22792
22814
|
}
|
|
22793
22815
|
return "skipped";
|
|
22794
22816
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskless-app/swarm",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.87",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Local control plane for a fleet of AI coding agents (drones), coordinating through Taskless. The overmind runs the swarm.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"undici": "^7.30.1",
|
|
41
41
|
"zod": "3.25.76"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "68dc6ddb7ee57e70257f8164aa55db3615dc16be",
|
|
44
44
|
"scripts": {
|
|
45
45
|
"overmind": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --conditions=development\" tsx src/overmind.ts",
|
|
46
46
|
"swarm": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --conditions=development\" tsx src/cli.ts",
|