@agent-inspect/eval 6.7.1 → 6.7.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/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import { fileURLToPath } from 'url';
1
2
  import { openTrace, TraceReadError } from 'agent-inspect/readers';
2
3
  import crypto, { createHash } from 'crypto';
3
4
 
@@ -915,7 +916,7 @@ function isTraceReadResult(value) {
915
916
  return value !== null && typeof value === "object" && "runs" in value && "events" in value && "format" in value;
916
917
  }
917
918
  function traceInputFrom(value) {
918
- return { type: "file", path: value instanceof URL ? value.pathname : value };
919
+ return { type: "file", path: value instanceof URL ? fileURLToPath(value) : value };
919
920
  }
920
921
  async function resolveRead(input, options) {
921
922
  try {