mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-28 20:21:50 +01:00
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>
9 lines
308 B
JavaScript
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; }
|
|
}
|