@taskless-app/swarm 0.6.34 → 0.6.35

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 CHANGED
@@ -3274,7 +3274,7 @@ var init_package = __esm({
3274
3274
  "package.json"() {
3275
3275
  package_default = {
3276
3276
  name: "@taskless-app/swarm",
3277
- version: "0.6.34",
3277
+ version: "0.6.35",
3278
3278
  type: "module",
3279
3279
  description: "Local control plane for a fleet of AI coding agents (drones), coordinating through Taskless. The overmind runs the swarm.",
3280
3280
  keywords: [
@@ -3325,7 +3325,7 @@ var init_package = __esm({
3325
3325
  execa: "^10.0.0",
3326
3326
  zod: "3.25.76"
3327
3327
  },
3328
- gitHead: "4eabd911d4dfd557bfbfcbc27afd36415714b7eb"
3328
+ gitHead: "d17bb241cf5d92790e5050c85648b97657c6b795"
3329
3329
  };
3330
3330
  }
3331
3331
  });
@@ -4216,11 +4216,13 @@ function isEventStream(headers2) {
4216
4216
  function createNetworkSettleTracker(target) {
4217
4217
  const pending2 = /* @__PURE__ */ new Set();
4218
4218
  const onChange = /* @__PURE__ */ new Set();
4219
+ let navGeneration = 0;
4219
4220
  const notify = () => {
4220
4221
  for (const cb of [...onChange]) cb();
4221
4222
  };
4222
4223
  target.on("request", ((req) => {
4223
4224
  pending2.add(req);
4225
+ if (req.isNavigationRequest?.()) navGeneration++;
4224
4226
  notify();
4225
4227
  }));
4226
4228
  target.on("response", ((res) => {
@@ -4235,24 +4237,30 @@ function createNetworkSettleTracker(target) {
4235
4237
  });
4236
4238
  target.on("requestfinished", onDone);
4237
4239
  target.on("requestfailed", onDone);
4240
+ const settleOnce = (quietMs, budgetMs) => new Promise((resolve4) => {
4241
+ let quietTimer;
4242
+ const hardTimer = setTimeout(finish, Math.max(0, budgetMs));
4243
+ function finish() {
4244
+ clearTimeout(quietTimer);
4245
+ clearTimeout(hardTimer);
4246
+ onChange.delete(check);
4247
+ resolve4();
4248
+ }
4249
+ function check() {
4250
+ clearTimeout(quietTimer);
4251
+ if (pending2.size === 0) quietTimer = setTimeout(finish, quietMs);
4252
+ }
4253
+ onChange.add(check);
4254
+ check();
4255
+ });
4238
4256
  return {
4239
- waitForSettle({ quietMs, timeoutMs }) {
4240
- return new Promise((resolve4) => {
4241
- let quietTimer;
4242
- const hardTimer = setTimeout(finish, timeoutMs);
4243
- function finish() {
4244
- clearTimeout(quietTimer);
4245
- clearTimeout(hardTimer);
4246
- onChange.delete(check);
4247
- resolve4();
4248
- }
4249
- function check() {
4250
- clearTimeout(quietTimer);
4251
- if (pending2.size === 0) quietTimer = setTimeout(finish, quietMs);
4252
- }
4253
- onChange.add(check);
4254
- check();
4255
- });
4257
+ async waitForSettle({ quietMs, timeoutMs }) {
4258
+ const deadline = Date.now() + timeoutMs;
4259
+ for (; ; ) {
4260
+ const genBefore = navGeneration;
4261
+ await settleOnce(quietMs, deadline - Date.now());
4262
+ if (navGeneration === genBefore || Date.now() >= deadline) return;
4263
+ }
4256
4264
  }
4257
4265
  };
4258
4266
  }
package/dist/overmind.js CHANGED
@@ -11863,7 +11863,7 @@ function parkReasonUnretriable(reason) {
11863
11863
  // package.json
11864
11864
  var package_default = {
11865
11865
  name: "@taskless-app/swarm",
11866
- version: "0.6.34",
11866
+ version: "0.6.35",
11867
11867
  type: "module",
11868
11868
  description: "Local control plane for a fleet of AI coding agents (drones), coordinating through Taskless. The overmind runs the swarm.",
11869
11869
  keywords: [
@@ -11914,7 +11914,7 @@ var package_default = {
11914
11914
  execa: "^10.0.0",
11915
11915
  zod: "3.25.76"
11916
11916
  },
11917
- gitHead: "4eabd911d4dfd557bfbfcbc27afd36415714b7eb"
11917
+ gitHead: "d17bb241cf5d92790e5050c85648b97657c6b795"
11918
11918
  };
11919
11919
 
11920
11920
  // src/version.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskless-app/swarm",
3
- "version": "0.6.34",
3
+ "version": "0.6.35",
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": [
@@ -39,7 +39,7 @@
39
39
  "execa": "^10.0.0",
40
40
  "zod": "3.25.76"
41
41
  },
42
- "gitHead": "4eabd911d4dfd557bfbfcbc27afd36415714b7eb",
42
+ "gitHead": "d17bb241cf5d92790e5050c85648b97657c6b795",
43
43
  "scripts": {
44
44
  "overmind": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --conditions=development\" tsx src/overmind.ts",
45
45
  "swarm": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --conditions=development\" tsx src/cli.ts",