UNPKG

paqad-ai

Version:

Spec-driven development framework — AI agents that think before they type

14 lines (12 loc) • 307 B
import { realpathSync } from 'node:fs'; import { pathToFileURL } from 'node:url'; export function isDirectEntry(importMetaUrl, argv1 = process.argv[1]) { if (!argv1) { return false; } try { return importMetaUrl === pathToFileURL(realpathSync(argv1)).href; } catch { return false; } }