Files
PaperClipAI/packages/paperclip-runner/scripts/controlled-evals/entrypoint.mjs
T
DottaandPaperclip 8c702d59db feat(evals): package a portable Runner controller runtime (#17506)
Package a verified portable Runner eval controller with complete bounded file receipts, copied dependency closure, private evidence replay and symlink-safe CLI entrypoints. Preserve fail-closed cost holds, native trace receipts and all parent security repairs.

Verified head: 1c892ff464.
Validation: 72 synthetic source/portable tests pass after current-master sync. Full current-head CI passed (40386180906); Greptile reviewed this exact head at5/5, with zero unresolved findings.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-26 14:32:46 -05: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; }
}