Files
PaperClipAI/packages/paperclip-runner/scripts/controlled-evals/entrypoint.mjs
T
DottaandPaperclip 2ccf99aec5 fix(evals): keep stdin imports free of CLI side effects
Also include receipt bytes and the receipt file in reported artifact totals.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-24 15:34:21 -07:00

9 lines
308 B
JavaScript

import { realpath } from 'node:fs/promises';
import { pathToFileURL } from 'node:url';
export async function isEntrypoint(url, argument = process.argv[1]) {
if (!argument || argument === '-') return false;
try { return url === pathToFileURL(await realpath(argument)).href; }
catch { return false; }
}