mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
* fix(cli): reverse start makes its --dir project, and init takes the video already in it Bug bash: production has no reverse/start route yet, so every run came back unrecorded, and reverse start then made no folder and no hyperframes.json. The agent downloaded the video into the folder it named, and init refused it as not empty, so agents moved files around. reverse start now makes --dir and stamps it with the skill when no session is recorded, and init accepts a folder whose only other files are its --video or --audio. * refactor(cli): say in names what the comments said, so the comment share holds * fix(cli): init keeps an in-folder source safe, and saved_to only names a stamped config - Only an audio or video file in the folder counts as the source; a file named index.html, meta.json or AGENTS.md is refused, so the scaffold never writes over it. - An in-folder .mp4 that needs transcoding goes to <name>.h264.mp4 beside it, instead of being both ffmpeg's input and output. - reverse start names saved_to only when hyperframes.json now holds the skill; a broken config is left as it was and saved_to is null. * fix(cli): init transcodes an in-folder .MP4 beside it on case-insensitive disks too original.MP4 and original.mp4 are one file on macOS and Windows, so the same-file check now ignores case. The test's ffprobe call gets its --. * fix(cli): init tells the source in the folder by the file, not its spelling On a case-blind disk --video original.mp4 names Original.MP4, so the folder check and the copy now compare device and inode; a source named in another case is accepted and never copied onto itself. * fix(cli): init transcodes only to a name with nothing at it, so a linked alias is never the output The folder guard admits every alias of the source by file identity, but the transcode output was chosen by path spelling. A hard link or symlink at name.mp4 or name.h264.mp4, or a source named through a linked folder, made FFmpeg (-y) rewrite the original. The output is now the first of name.mp4, name.h264.mp4, name.h264-2.mp4, ... with nothing at its path (lstat, so a link counts), which also covers a case-only spelling on a case-blind disk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HebQXN7wsMK6GqT3MNtqXw --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>