The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
import { realpathSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
// Node resolves the module URL through symlinks, while argv[1] can retain them.
export function isMain(moduleUrl: string): boolean {
if (!process.argv[1]) return false;
try { return realpathSync(process.argv[1]) === realpathSync(fileURLToPath(moduleUrl)); }
catch { return false; }
}