Files
olivv-cs-ComfyUI-FunPack/app/ui/shell/bin.js
T
Claude 129cc10d0f fix: video and audio references go to R2V's own video/audio inputs; aspect ratio source accepts a video
New Load Media (video) and (audio) nodes; picture loader keeps first frame for the aspect source only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CHWxqHtxwWrq4kEyFTaHds
2026-10-21 02:01:01 +00:00

17 lines
772 B
JavaScript

// What the media bin's files are called, as last seen by whoever looked: one shared memory so a rename shows everywhere.
export const names = new Map();
/** What each picture means when used as a reference ("<Subject 1> is the woman in <Picture 1>…"), as last seen. */
export const subjects = new Map();
/** What each file is (image, video, audio), as last seen: the kind decides which input a reference lands on. */
export const kinds = new Map();
export const bin = { version: 0 };
/** Remember a listing (replacing what was known). */
export function learn(list) {
names.clear();
subjects.clear();
kinds.clear();
list.forEach((m) => { names.set(m.id, m.name); kinds.set(m.id, m.kind); if (m.subject) subjects.set(m.id, m.subject); });
bin.version += 1;
}