adhdev 0.5.30 → 0.5.31

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/index.js CHANGED
@@ -23006,8 +23006,8 @@ var require_dist = __commonJS({
23006
23006
  try {
23007
23007
  const fs10 = require("fs");
23008
23008
  const ptyDir = path9.resolve(path9.dirname(require.resolve("node-pty")), "..");
23009
- const arch3 = os11.arch() === "arm64" ? "darwin-arm64" : "darwin-x64";
23010
- const helper = path9.join(ptyDir, "prebuilds", arch3, "spawn-helper");
23009
+ const platformArch = `${os11.platform()}-${os11.arch()}`;
23010
+ const helper = path9.join(ptyDir, "prebuilds", platformArch, "spawn-helper");
23011
23011
  if (fs10.existsSync(helper)) {
23012
23012
  const stat = fs10.statSync(helper);
23013
23013
  if (!(stat.mode & 73)) {
@@ -23019,7 +23019,7 @@ var require_dist = __commonJS({
23019
23019
  }
23020
23020
  }
23021
23021
  } catch {
23022
- LOG5.error("CLI", "[ProviderCliAdapter] node-pty not found. Install: npm install node-pty@1.0.0");
23022
+ LOG5.error("CLI", "[ProviderCliAdapter] node-pty not found. Terminal features disabled.");
23023
23023
  }
23024
23024
  function stripAnsi(str) {
23025
23025
  return str.replace(/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g, "").replace(/\x1B\][^\x07]*\x07/g, "").replace(/\x1B\][^\x1B]*\x1B\\/g, "");
@@ -29223,7 +29223,7 @@ var init_server_connection = __esm({
29223
29223
  }
29224
29224
  return;
29225
29225
  }
29226
- if (code !== 1e3 && this.reconnectAttempts < 50) {
29226
+ if (code !== 1e3) {
29227
29227
  this.setState("disconnected");
29228
29228
  this.scheduleReconnect();
29229
29229
  } else {
@@ -29241,9 +29241,9 @@ var init_server_connection = __esm({
29241
29241
  }
29242
29242
  }
29243
29243
  scheduleReconnect() {
29244
- const delay = Math.min(1e3 * Math.pow(2, this.reconnectAttempts), 6e4);
29244
+ const delay = Math.min(2e3 * Math.pow(1.5, this.reconnectAttempts), 6e4);
29245
29245
  this.reconnectAttempts++;
29246
- import_daemon_core.LOG.info("Server", `[ServerConn] Reconnecting in ${delay}ms (attempt ${this.reconnectAttempts})...`);
29246
+ import_daemon_core.LOG.info("Server", `[ServerConn] Reconnecting in ${(delay / 1e3).toFixed(1)}s (attempt ${this.reconnectAttempts})...`);
29247
29247
  this.reconnectTimer = setTimeout(() => this.connect(), delay);
29248
29248
  }
29249
29249
  clearTimers() {
@@ -29261,11 +29261,11 @@ var init_server_connection = __esm({
29261
29261
  try {
29262
29262
  this.ws.ping();
29263
29263
  this.pongTimeout = setTimeout(() => {
29264
- import_daemon_core.LOG.info("Server", "[ServerConn] \u26A0 Pong timeout (10s) \u2014 closing zombie WS");
29264
+ import_daemon_core.LOG.info("Server", "[ServerConn] \u26A0 Pong timeout (15s) \u2014 closing zombie WS");
29265
29265
  if (this.ws) {
29266
29266
  this.ws.terminate();
29267
29267
  }
29268
- }, 1e4);
29268
+ }, 15e3);
29269
29269
  } catch {
29270
29270
  }
29271
29271
  }, 3e4);
@@ -30282,7 +30282,7 @@ var init_adhdev_daemon = __esm({
30282
30282
  path2 = __toESM(require("path"));
30283
30283
  crypto2 = __toESM(require("crypto"));
30284
30284
  import_chalk = __toESM(require("chalk"));
30285
- pkgVersion = "0.5.30";
30285
+ pkgVersion = "0.5.31";
30286
30286
  if (pkgVersion === "unknown") {
30287
30287
  try {
30288
30288
  const possiblePaths = [