@cortexkit/aft 0.39.2 → 0.39.4

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -234,7 +234,7 @@ function clampSemanticTimeout(configOverrides, bridgeTimeoutMs) {
234
234
  }
235
235
  };
236
236
  }
237
- var DEFAULT_BRIDGE_TIMEOUT_MS = 30000, BRIDGE_HANG_TIMEOUT_THRESHOLD = 2, SEMANTIC_TIMEOUT_SAFETY_MARGIN_MS = 5000, MAX_STDOUT_BUFFER, STDOUT_BUFFER_COMPACT_THRESHOLD, TERMINAL_BASH_STATUSES, BENIGN_CPUINFO_PROC_CPUINFO_PARSE_FAILURE = "failed to parse processor information from /proc/cpuinfo", BridgeReplacedDuringVersionCheck, BinaryBridge;
237
+ var DEFAULT_BRIDGE_TIMEOUT_MS = 30000, BRIDGE_HANG_TIMEOUT_THRESHOLD = 2, SEMANTIC_TIMEOUT_SAFETY_MARGIN_MS = 5000, MAX_STDOUT_BUFFER, STDOUT_BUFFER_COMPACT_THRESHOLD, TERMINAL_BASH_STATUSES, BENIGN_CPUINFO_PROC_CPUINFO_PARSE_FAILURE = "failed to parse processor information from /proc/cpuinfo", BridgeReplacedDuringVersionCheck, BridgeTransportTimeoutError, BinaryBridge;
238
238
  var init_bridge = __esm(() => {
239
239
  init_active_logger();
240
240
  init_command_timeouts();
@@ -256,6 +256,17 @@ var init_bridge = __esm(() => {
256
256
  this.name = "BridgeReplacedDuringVersionCheck";
257
257
  }
258
258
  };
259
+ BridgeTransportTimeoutError = class BridgeTransportTimeoutError extends Error {
260
+ command;
261
+ timeoutMs;
262
+ code = "transport_timeout";
263
+ constructor(command, timeoutMs, message) {
264
+ super(message);
265
+ this.command = command;
266
+ this.timeoutMs = timeoutMs;
267
+ this.name = "BridgeTransportTimeoutError";
268
+ }
269
+ };
259
270
  BinaryBridge = class BinaryBridge {
260
271
  static RESTART_RESET_MS = 5 * 60 * 1000;
261
272
  static STDERR_TAIL_MAX = 20;
@@ -483,7 +494,7 @@ var init_bridge = __esm(() => {
483
494
  } else {
484
495
  this.warnVia(timeoutMsg2);
485
496
  }
486
- entry.reject(new Error(`${this.errorPrefix} Request "${command}" (id=${id}) timed out after ${effectiveTimeoutMs}ms`));
497
+ entry.reject(new BridgeTransportTimeoutError(command, effectiveTimeoutMs, `${this.errorPrefix} Request "${command}" (id=${id}) timed out after ${effectiveTimeoutMs}ms`));
487
498
  return;
488
499
  }
489
500
  const childActiveSinceRequest = this.lastChildActivityAt > requestSentAt;
@@ -1020,6 +1031,9 @@ var init_bridge = __esm(() => {
1020
1031
  }
1021
1032
  };
1022
1033
  });
1034
+
1035
+ // ../aft-bridge/dist/callgraph-format.js
1036
+ var init_callgraph_format = () => {};
1023
1037
  // ../aft-bridge/dist/platform.js
1024
1038
  var init_platform = () => {};
1025
1039
 
@@ -1483,6 +1497,7 @@ var init_dist = __esm(() => {
1483
1497
  init_active_logger();
1484
1498
  init_bash_hints();
1485
1499
  init_bridge();
1500
+ init_callgraph_format();
1486
1501
  init_command_timeouts();
1487
1502
  init_downloader();
1488
1503
  init_migration();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/aft",
3
- "version": "0.39.2",
3
+ "version": "0.39.4",
4
4
  "type": "module",
5
5
  "description": "Unified CLI for Agent File Tools (AFT) — setup, doctor, and diagnostics across supported agent harnesses (OpenCode, Pi)",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@clack/prompts": "^1.2.0",
27
- "@cortexkit/aft-bridge": "0.39.2",
27
+ "@cortexkit/aft-bridge": "0.39.4",
28
28
  "comment-json": "^4.6.2"
29
29
  },
30
30
  "devDependencies": {