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.
- package/CHANGELOG.md +6 -0
- package/README.md +4 -7
- package/docs/SAFE-TRACE-SHARING.md +2 -0
- package/docs/SCREENSHOTS.md +2 -1
- package/docs/assets/agent-inspect-logo-mark.svg +12 -0
- package/docs/assets/readme-product-loop.svg +17 -26
- package/package.json +2 -1
- package/packages/cli/dist/{chunk-FXGWXSFV.mjs → chunk-5GGYDIZD.mjs} +8 -3
- package/packages/cli/dist/{chunk-FXGWXSFV.mjs.map → chunk-5GGYDIZD.mjs.map} +1 -1
- package/packages/cli/dist/index.cjs +7 -2
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +4 -4
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-EW7KW2BK.mjs → src-IDMCWKRH.mjs} +3 -3
- package/packages/cli/dist/{src-EW7KW2BK.mjs.map → src-IDMCWKRH.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +6 -1
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.mjs +6 -1
- package/packages/core/dist/advanced.mjs.map +1 -1
|
@@ -204,7 +204,12 @@ function countErrorNodes(nodes) {
|
|
|
204
204
|
return nodes.filter((entry) => entry.node.event.status === "error").length;
|
|
205
205
|
}
|
|
206
206
|
function slowestNode(nodes) {
|
|
207
|
-
return nodes.filter(
|
|
207
|
+
return nodes.filter(
|
|
208
|
+
(entry) => entry.node.event.durationMs !== void 0 && // The RUN boundary spans the whole run, so its duration always dominates
|
|
209
|
+
// and shadows every real step. Rank actual work nodes only, matching the
|
|
210
|
+
// stats slowest-step ranking, which never counts the run envelope.
|
|
211
|
+
entry.node.event.kind !== "RUN"
|
|
212
|
+
).sort((a, b) => {
|
|
208
213
|
const delta = (b.node.event.durationMs ?? 0) - (a.node.event.durationMs ?? 0);
|
|
209
214
|
return delta !== 0 ? delta : a.index - b.index;
|
|
210
215
|
})[0];
|