agent-inspect 6.17.2 → 6.17.3

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.
@@ -2765,7 +2765,12 @@ function countErrorNodes(nodes) {
2765
2765
  return nodes.filter((entry) => entry.node.event.status === "error").length;
2766
2766
  }
2767
2767
  function slowestNode(nodes) {
2768
- return nodes.filter((entry) => entry.node.event.durationMs !== void 0).sort((a, b) => {
2768
+ return nodes.filter(
2769
+ (entry) => entry.node.event.durationMs !== void 0 && // The RUN boundary spans the whole run, so its duration always dominates
2770
+ // and shadows every real step. Rank actual work nodes only, matching the
2771
+ // stats slowest-step ranking, which never counts the run envelope.
2772
+ entry.node.event.kind !== "RUN"
2773
+ ).sort((a, b) => {
2769
2774
  const delta = (b.node.event.durationMs ?? 0) - (a.node.event.durationMs ?? 0);
2770
2775
  return delta !== 0 ? delta : a.index - b.index;
2771
2776
  })[0];
@@ -12501,7 +12506,7 @@ var init_src = __esm({
12501
12506
  });
12502
12507
 
12503
12508
  // package.json
12504
- var version = "6.17.2";
12509
+ var version = "6.17.3";
12505
12510
 
12506
12511
  // packages/cli/src/list.ts
12507
12512
  init_advanced();